From cf4e35339b1d5a613588b45c53d0e88da5363c65 Mon Sep 17 00:00:00 2001 From: xiongmao86 Date: Sat, 18 Apr 2020 18:28:29 +0800 Subject: Add an Option argument to span_lint_and_help. --- clippy_lints/src/integer_division.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'clippy_lints/src/integer_division.rs') 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.", ); } -- cgit 1.4.1-3-g733a5