suspicious-arithmetic-impl: make lint adhere to lint message convention
This commit is contained in:
parent
7954c22a99
commit
fe37ddbd11
2 changed files with 5 additions and 5 deletions
|
|
@ -98,7 +98,7 @@ impl<'tcx> LateLintPass<'tcx> for SuspiciousImpl {
|
|||
cx,
|
||||
SUSPICIOUS_ARITHMETIC_IMPL,
|
||||
binop.span,
|
||||
&format!(r#"Suspicious use of binary operator in `{}` impl"#, impl_trait),
|
||||
&format!("suspicious use of binary operator in `{}` impl", impl_trait),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ impl<'tcx> LateLintPass<'tcx> for SuspiciousImpl {
|
|||
cx,
|
||||
SUSPICIOUS_OP_ASSIGN_IMPL,
|
||||
binop.span,
|
||||
&format!(r#"Suspicious use of binary operator in `{}` impl"#, impl_trait),
|
||||
&format!("suspicious use of binary operator in `{}` impl", impl_trait),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue