1 error: equality checks against true are unnecessary
2 --> bool_comparison.rs:7:8
4 7 | if x == true { "yes" } else { "no" };
5 | ^^^^^^^^^ help: try simplifying it as shown: `x`
7 = note: `-D bool-comparison` implied by `-D warnings`
9 error: equality checks against false can be replaced by a negation
10 --> bool_comparison.rs:8:8
12 8 | if x == false { "yes" } else { "no" };
13 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
15 = note: `-D bool-comparison` implied by `-D warnings`
17 error: equality checks against true are unnecessary
18 --> bool_comparison.rs:9:8
20 9 | if true == x { "yes" } else { "no" };
21 | ^^^^^^^^^ help: try simplifying it as shown: `x`
23 = note: `-D bool-comparison` implied by `-D warnings`
25 error: equality checks against false can be replaced by a negation
26 --> bool_comparison.rs:10:8
28 10 | if false == x { "yes" } else { "no" };
29 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
31 = note: `-D bool-comparison` implied by `-D warnings`
33 error: aborting due to previous error(s)
35 error: Could not compile `clippy_tests`.
37 To learn more, run the command again with --verbose.