fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
753 B30 linesraw
1error: unnecessary boolean `not` operation
2  --> $DIR/if_not_else.rs:12:5
3   |
4LL | /     if !bla() {
5LL | |
6LL | |         println!("Bugs");
7LL | |     } else {
8LL | |         println!("Bunny");
9LL | |     }
10   | |_____^
11   |
12   = help: remove the `!` and swap the blocks of the `if`/`else`
13   = note: `-D clippy::if-not-else` implied by `-D warnings`
14   = help: to override `-D warnings` add `#[allow(clippy::if_not_else)]`
15
16error: unnecessary `!=` operation
17  --> $DIR/if_not_else.rs:18:5
18   |
19LL | /     if 4 != 5 {
20LL | |
21LL | |         println!("Bugs");
22LL | |     } else {
23LL | |         println!("Bunny");
24LL | |     }
25   | |_____^
26   |
27   = help: change to `==` and swap the blocks of the `if`/`else`
28
29error: aborting due to 2 previous errors
30