Add an Option<Span> argument to span_lint_and_help.
This commit is contained in:
@@ -35,6 +35,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for IntegerDivision {
|
||||
INTEGER_DIVISION,
|
||||
expr.span,
|
||||
"integer division",
|
||||
None,
|
||||
"division of integers may cause loss of precision. consider using floats.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user