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.
This commit is contained in:
Philipp Hansch 2019-04-17 20:46:42 +02:00
parent 3e760cc93a
commit 01ea9bd9d8
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6

View File

@ -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,