From 01ea9bd9d8a98146383cfd482727d090f11d1471 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Wed, 17 Apr 2019 20:46:42 +0200 Subject: [PATCH] Change naive_bytecount applicability MaybeIncorrect We can't use `MachineApplicable` here as applying the fix will cause another error because `bytecount` would first have to be added to the Cargo.toml. --- clippy_lints/src/bytecount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/bytecount.rs b/clippy_lints/src/bytecount.rs index 9fd82ae5946b..fedc431de1db 100644 --- a/clippy_lints/src/bytecount.rs +++ b/clippy_lints/src/bytecount.rs @@ -86,7 +86,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ByteCount { } else { &filter_args[0] }; - let mut applicability = Applicability::MachineApplicable; + let mut applicability = Applicability::MaybeIncorrect; span_lint_and_sugg( cx, NAIVE_BYTECOUNT,