Skip to content
Myr

Ignore needless_else clippy lint in test suite

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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`

authored by David Tolnay · committed by David Tolnay · parent 6046674 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_ensure.rs+1 added
6 unmodified lines
7 clippy::items_after_statements,8 clippy::let_and_return,9 clippy::let_underscore_untyped,10 clippy::match_bool,11 clippy::needless_else,12 clippy::never_loop,13 clippy::overly_complex_bool_expr,14 clippy::redundant_closure_call,15 clippy::redundant_pattern_matching,
706 unmodified lines