Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Ignore if_not_else Clippy pedantic lint
Browse files Browse the repository at this point in the history
    error: unnecessary boolean `not` operation
       --> src/number.rs:367:24
        |
    367 |                   } else if !b.is_nan() {
        |  ________________________^
    368 | |                     Ordering::Greater
    369 | |                 } else {
    370 | |                     Ordering::Equal
    371 | |                 }
        | |_________________^
        |
        = note: `-D clippy::if-not-else` implied by `-D clippy::pedantic`
        = help: remove the `!` and swap the blocks of the `if`/`else`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_not_else
  • Loading branch information
dtolnay committed Aug 22, 2021
1 parent 6e432a2 commit aed90c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
clippy::should_implement_trait,
// things are often more readable this way
clippy::cast_lossless,
clippy::if_not_else,
clippy::match_same_arms,
clippy::module_name_repetitions,
clippy::needless_pass_by_value,
Expand Down

0 comments on commit aed90c2

Please # to comment.