Skip to content

Commit

Permalink
Ignore needless_else clippy lint in test suite
Browse files Browse the repository at this point in the history
    error: this else branch is empty
       --> tests/test_ensure.rs:177:42
        |
    177 |     let test = || Ok(ensure!(if false {} else {}.t(1) == 2));
        |                                          ^^^^^^^ help: you can remove it
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else
        = note: `-D clippy::needless-else` implied by `-D clippy::all`
  • Loading branch information
dtolnay committed Jun 3, 2023
1 parent 6046674 commit 1f17666
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_ensure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
clippy::let_and_return,
clippy::let_underscore_untyped,
clippy::match_bool,
clippy::needless_else,
clippy::never_loop,
clippy::overly_complex_bool_expr,
clippy::redundant_closure_call,
Expand Down

0 comments on commit 1f17666

Please sign in to comment.