Fix NAIVE_BYTECOUNT applicability

This commit is contained in:
flip1995 2018-11-27 17:31:17 +01:00
parent 6eb8e6d7c5
commit 87e72a5861
No known key found for this signature in database
GPG key ID: E8E897A5870E41C2

View file

@ -102,7 +102,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ByteCount {
format!("bytecount::count({}, {})",
snippet_with_applicability(cx, haystack.span, "..", &mut applicability),
snippet_with_applicability(cx, needle.span, "..", &mut applicability)),
Applicability::Unspecified,
applicability,
);
}
};