Skip to content

Commit 01ea9bd

Browse files
committed
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.
1 parent 3e760cc commit 01ea9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/bytecount.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ByteCount {
8686
} else {
8787
&filter_args[0]
8888
};
89-
let mut applicability = Applicability::MachineApplicable;
89+
let mut applicability = Applicability::MaybeIncorrect;
9090
span_lint_and_sugg(
9191
cx,
9292
NAIVE_BYTECOUNT,

0 commit comments

Comments
 (0)