if_not_else: make lint adhere to lint message convention
This commit is contained in:
parent
605e027fda
commit
be3e695b60
4 changed files with 6 additions and 6 deletions
|
|
@ -60,7 +60,7 @@ impl EarlyLintPass for IfNotElse {
|
|||
cx,
|
||||
IF_NOT_ELSE,
|
||||
item.span,
|
||||
"Unnecessary boolean `not` operation",
|
||||
"unnecessary boolean `not` operation",
|
||||
None,
|
||||
"remove the `!` and swap the blocks of the `if`/`else`",
|
||||
);
|
||||
|
|
@ -70,7 +70,7 @@ impl EarlyLintPass for IfNotElse {
|
|||
cx,
|
||||
IF_NOT_ELSE,
|
||||
item.span,
|
||||
"Unnecessary `!=` operation",
|
||||
"unnecessary `!=` operation",
|
||||
None,
|
||||
"change to `==` and swap the blocks of the `if`/`else`",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ declare_clippy_lint! {
|
|||
/// ```
|
||||
pub USE_SELF,
|
||||
nursery,
|
||||
"Unnecessary structure name repetition whereas `Self` is applicable"
|
||||
"unnecessary structure name repetition whereas `Self` is applicable"
|
||||
}
|
||||
|
||||
declare_lint_pass!(UseSelf => [USE_SELF]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue