Skip to content

Commit 1f17666

Browse files
committed
Ignore needless_else clippy lint in test suite
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`
1 parent 6046674 commit 1f17666

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_ensure.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
clippy::let_and_return,
99
clippy::let_underscore_untyped,
1010
clippy::match_bool,
11+
clippy::needless_else,
1112
clippy::never_loop,
1213
clippy::overly_complex_bool_expr,
1314
clippy::redundant_closure_call,

0 commit comments

Comments
 (0)