File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ fn check_comparison<'a, 'tcx>(
243
243
cx,
244
244
BOOL_COMPARISON ,
245
245
e. span ,
246
- "This comparison might be written more concisely" ,
246
+ "this comparison might be written more concisely" ,
247
247
"try simplifying it as shown" ,
248
248
format ! (
249
249
"{} != {}" ,
Original file line number Diff line number Diff line change @@ -84,25 +84,25 @@ error: order comparisons between booleans can be simplified
84
84
LL | if x > y {
85
85
| ^^^^^ help: try simplifying it as shown: `x & !y`
86
86
87
- error: This comparison might be written more concisely
87
+ error: this comparison might be written more concisely
88
88
--> $DIR/bool_comparison.rs:120:8
89
89
|
90
90
LL | if a == !b {};
91
91
| ^^^^^^^ help: try simplifying it as shown: `a != b`
92
92
93
- error: This comparison might be written more concisely
93
+ error: this comparison might be written more concisely
94
94
--> $DIR/bool_comparison.rs:121:8
95
95
|
96
96
LL | if !a == b {};
97
97
| ^^^^^^^ help: try simplifying it as shown: `a != b`
98
98
99
- error: This comparison might be written more concisely
99
+ error: this comparison might be written more concisely
100
100
--> $DIR/bool_comparison.rs:125:8
101
101
|
102
102
LL | if b == !a {};
103
103
| ^^^^^^^ help: try simplifying it as shown: `b != a`
104
104
105
- error: This comparison might be written more concisely
105
+ error: this comparison might be written more concisely
106
106
--> $DIR/bool_comparison.rs:126:8
107
107
|
108
108
LL | if !b == a {};
You can’t perform that action at this time.
0 commit comments