File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ impl<'tcx> LateLintPass<'tcx> for Ptr {
145
145
cx,
146
146
CMP_NULL ,
147
147
expr. span ,
148
- "Comparing with null is better expressed by the `.is_null()` method" ,
148
+ "comparing with null is better expressed by the `.is_null()` method" ,
149
149
) ;
150
150
}
151
151
}
Original file line number Diff line number Diff line change 1
- error: Comparing with null is better expressed by the `.is_null()` method
1
+ error: comparing with null is better expressed by the `.is_null()` method
2
2
--> $DIR/cmp_null.rs:9:8
3
3
|
4
4
LL | if p == ptr::null() {
5
5
| ^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D clippy::cmp-null` implied by `-D warnings`
8
8
9
- error: Comparing with null is better expressed by the `.is_null()` method
9
+ error: comparing with null is better expressed by the `.is_null()` method
10
10
--> $DIR/cmp_null.rs:14:8
11
11
|
12
12
LL | if m == ptr::null_mut() {
You can’t perform that action at this time.
0 commit comments