diff options
| author | xiongmao86 <xiongmao86dev@sina.com> | 2020-04-18 18:28:29 +0800 |
|---|---|---|
| committer | xiongmao86 <xiongmao86dev@sina.com> | 2020-04-18 18:28:29 +0800 |
| commit | cf4e35339b1d5a613588b45c53d0e88da5363c65 (patch) | |
| tree | 830fb97e01fb0a1e245aec7afd20494134881136 /clippy_lints/src/integer_division.rs | |
| parent | d03d3bd95b06b82246a51aaa8e424a67eb724037 (diff) | |
Add an Option<Span> argument to span_lint_and_help.
Diffstat (limited to 'clippy_lints/src/integer_division.rs')
| -rw-r--r-- | clippy_lints/src/integer_division.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/integer_division.rs b/clippy_lints/src/integer_division.rs index 053d66e6af7..fe34d33fe65 100644 --- a/clippy_lints/src/integer_division.rs +++ b/clippy_lints/src/integer_division.rs @@ -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.", ); } |
