|
1 | 1 | error: equality checks against true are unnecessary
|
2 |
| - --> $DIR/bool_comparison.rs:8:8 |
| 2 | + --> $DIR/bool_comparison.rs:9:8 |
3 | 3 | |
|
4 | 4 | LL | if x == true {
|
5 | 5 | | ^^^^^^^^^ help: try simplifying it as shown: `x`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::bool-comparison` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: equality checks against false can be replaced by a negation
|
10 |
| - --> $DIR/bool_comparison.rs:13:8 |
| 10 | + --> $DIR/bool_comparison.rs:14:8 |
11 | 11 | |
|
12 | 12 | LL | if x == false {
|
13 | 13 | | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
14 | 14 |
|
15 | 15 | error: equality checks against true are unnecessary
|
16 |
| - --> $DIR/bool_comparison.rs:18:8 |
| 16 | + --> $DIR/bool_comparison.rs:19:8 |
17 | 17 | |
|
18 | 18 | LL | if true == x {
|
19 | 19 | | ^^^^^^^^^ help: try simplifying it as shown: `x`
|
20 | 20 |
|
21 | 21 | error: equality checks against false can be replaced by a negation
|
22 |
| - --> $DIR/bool_comparison.rs:23:8 |
| 22 | + --> $DIR/bool_comparison.rs:24:8 |
23 | 23 | |
|
24 | 24 | LL | if false == x {
|
25 | 25 | | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
|
26 | 26 |
|
27 | 27 | error: inequality checks against true can be replaced by a negation
|
28 |
| - --> $DIR/bool_comparison.rs:28:8 |
| 28 | + --> $DIR/bool_comparison.rs:29:8 |
29 | 29 | |
|
30 | 30 | LL | if x != true {
|
31 | 31 | | ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
32 | 32 |
|
33 | 33 | error: inequality checks against false are unnecessary
|
34 |
| - --> $DIR/bool_comparison.rs:33:8 |
| 34 | + --> $DIR/bool_comparison.rs:34:8 |
35 | 35 | |
|
36 | 36 | LL | if x != false {
|
37 | 37 | | ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
38 | 38 |
|
39 | 39 | error: inequality checks against true can be replaced by a negation
|
40 |
| - --> $DIR/bool_comparison.rs:38:8 |
| 40 | + --> $DIR/bool_comparison.rs:39:8 |
41 | 41 | |
|
42 | 42 | LL | if true != x {
|
43 | 43 | | ^^^^^^^^^ help: try simplifying it as shown: `!x`
|
44 | 44 |
|
45 | 45 | error: inequality checks against false are unnecessary
|
46 |
| - --> $DIR/bool_comparison.rs:43:8 |
| 46 | + --> $DIR/bool_comparison.rs:44:8 |
47 | 47 | |
|
48 | 48 | LL | if false != x {
|
49 | 49 | | ^^^^^^^^^^ help: try simplifying it as shown: `x`
|
50 | 50 |
|
51 | 51 | error: less than comparison against true can be replaced by a negation
|
52 |
| - --> $DIR/bool_comparison.rs:48:8 |
| 52 | + --> $DIR/bool_comparison.rs:49:8 |
53 | 53 | |
|
54 | 54 | LL | if x < true {
|
55 | 55 | | ^^^^^^^^ help: try simplifying it as shown: `!x`
|
56 | 56 |
|
57 | 57 | error: greater than checks against false are unnecessary
|
58 |
| - --> $DIR/bool_comparison.rs:53:8 |
| 58 | + --> $DIR/bool_comparison.rs:54:8 |
59 | 59 | |
|
60 | 60 | LL | if false < x {
|
61 | 61 | | ^^^^^^^^^ help: try simplifying it as shown: `x`
|
62 | 62 |
|
63 | 63 | error: greater than checks against false are unnecessary
|
64 |
| - --> $DIR/bool_comparison.rs:58:8 |
| 64 | + --> $DIR/bool_comparison.rs:59:8 |
65 | 65 | |
|
66 | 66 | LL | if x > false {
|
67 | 67 | | ^^^^^^^^^ help: try simplifying it as shown: `x`
|
68 | 68 |
|
69 | 69 | error: less than comparison against true can be replaced by a negation
|
70 |
| - --> $DIR/bool_comparison.rs:63:8 |
| 70 | + --> $DIR/bool_comparison.rs:64:8 |
71 | 71 | |
|
72 | 72 | LL | if true > x {
|
73 | 73 | | ^^^^^^^^ help: try simplifying it as shown: `!x`
|
74 | 74 |
|
75 | 75 | error: order comparisons between booleans can be simplified
|
76 |
| - --> $DIR/bool_comparison.rs:69:8 |
| 76 | + --> $DIR/bool_comparison.rs:70:8 |
77 | 77 | |
|
78 | 78 | LL | if x < y {
|
79 | 79 | | ^^^^^ help: try simplifying it as shown: `!x & y`
|
80 | 80 |
|
81 | 81 | error: order comparisons between booleans can be simplified
|
82 |
| - --> $DIR/bool_comparison.rs:74:8 |
| 82 | + --> $DIR/bool_comparison.rs:75:8 |
83 | 83 | |
|
84 | 84 | LL | if x > y {
|
85 | 85 | | ^^^^^ help: try simplifying it as shown: `x & !y`
|
86 | 86 |
|
87 | 87 | error: this comparison might be written more concisely
|
88 |
| - --> $DIR/bool_comparison.rs:122:8 |
| 88 | + --> $DIR/bool_comparison.rs:123:8 |
89 | 89 | |
|
90 | 90 | LL | if a == !b {};
|
91 | 91 | | ^^^^^^^ help: try simplifying it as shown: `a != b`
|
92 | 92 |
|
93 | 93 | error: this comparison might be written more concisely
|
94 |
| - --> $DIR/bool_comparison.rs:123:8 |
| 94 | + --> $DIR/bool_comparison.rs:124:8 |
95 | 95 | |
|
96 | 96 | LL | if !a == b {};
|
97 | 97 | | ^^^^^^^ help: try simplifying it as shown: `a != b`
|
98 | 98 |
|
99 | 99 | error: this comparison might be written more concisely
|
100 |
| - --> $DIR/bool_comparison.rs:127:8 |
| 100 | + --> $DIR/bool_comparison.rs:128:8 |
101 | 101 | |
|
102 | 102 | LL | if b == !a {};
|
103 | 103 | | ^^^^^^^ help: try simplifying it as shown: `b != a`
|
104 | 104 |
|
105 | 105 | error: this comparison might be written more concisely
|
106 |
| - --> $DIR/bool_comparison.rs:128:8 |
| 106 | + --> $DIR/bool_comparison.rs:129:8 |
107 | 107 | |
|
108 | 108 | LL | if !b == a {};
|
109 | 109 | | ^^^^^^^ help: try simplifying it as shown: `b != a`
|
110 | 110 |
|
111 | 111 | error: equality checks against false can be replaced by a negation
|
112 |
| - --> $DIR/bool_comparison.rs:152:8 |
| 112 | + --> $DIR/bool_comparison.rs:153:8 |
113 | 113 | |
|
114 | 114 | LL | if false == m!(func) {}
|
115 | 115 | | ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
|
116 | 116 |
|
117 | 117 | error: equality checks against false can be replaced by a negation
|
118 |
| - --> $DIR/bool_comparison.rs:153:8 |
| 118 | + --> $DIR/bool_comparison.rs:154:8 |
119 | 119 | |
|
120 | 120 | LL | if m!(func) == false {}
|
121 | 121 | | ^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!m!(func)`
|
122 | 122 |
|
123 | 123 | error: equality checks against true are unnecessary
|
124 |
| - --> $DIR/bool_comparison.rs:154:8 |
| 124 | + --> $DIR/bool_comparison.rs:155:8 |
125 | 125 | |
|
126 | 126 | LL | if true == m!(func) {}
|
127 | 127 | | ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
|
128 | 128 |
|
129 | 129 | error: equality checks against true are unnecessary
|
130 |
| - --> $DIR/bool_comparison.rs:155:8 |
| 130 | + --> $DIR/bool_comparison.rs:156:8 |
131 | 131 | |
|
132 | 132 | LL | if m!(func) == true {}
|
133 | 133 | | ^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `m!(func)`
|
|
0 commit comments