File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ impl EarlyLintPass for IfNotElse {
60
60
cx,
61
61
IF_NOT_ELSE ,
62
62
item. span ,
63
- "Unnecessary boolean `not` operation" ,
63
+ "unnecessary boolean `not` operation" ,
64
64
None ,
65
65
"remove the `!` and swap the blocks of the `if`/`else`" ,
66
66
) ;
@@ -70,7 +70,7 @@ impl EarlyLintPass for IfNotElse {
70
70
cx,
71
71
IF_NOT_ELSE ,
72
72
item. span ,
73
- "Unnecessary `!=` operation" ,
73
+ "unnecessary `!=` operation" ,
74
74
None ,
75
75
"change to `==` and swap the blocks of the `if`/`else`" ,
76
76
) ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ declare_clippy_lint! {
50
50
/// ```
51
51
pub USE_SELF ,
52
52
nursery,
53
- "Unnecessary structure name repetition whereas `Self` is applicable"
53
+ "unnecessary structure name repetition whereas `Self` is applicable"
54
54
}
55
55
56
56
declare_lint_pass ! ( UseSelf => [ USE_SELF ] ) ;
Original file line number Diff line number Diff line change @@ -2498,7 +2498,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
2498
2498
Lint {
2499
2499
name: "use_self" ,
2500
2500
group: "nursery" ,
2501
- desc: "Unnecessary structure name repetition whereas `Self` is applicable" ,
2501
+ desc: "unnecessary structure name repetition whereas `Self` is applicable" ,
2502
2502
deprecation: None ,
2503
2503
module: "use_self" ,
2504
2504
} ,
Original file line number Diff line number Diff line change 1
- error: Unnecessary boolean `not` operation
1
+ error: unnecessary boolean `not` operation
2
2
--> $DIR/if_not_else.rs:9:5
3
3
|
4
4
LL | / if !bla() {
@@ -11,7 +11,7 @@ LL | | }
11
11
= note: `-D clippy::if-not-else` implied by `-D warnings`
12
12
= help: remove the `!` and swap the blocks of the `if`/`else`
13
13
14
- error: Unnecessary `!=` operation
14
+ error: unnecessary `!=` operation
15
15
--> $DIR/if_not_else.rs:14:5
16
16
|
17
17
LL | / if 4 != 5 {
You can’t perform that action at this time.
0 commit comments