File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4287,10 +4287,10 @@ declare_clippy_lint! {
42874287
42884288declare_clippy_lint ! {
42894289 /// ### What it does
4290- /// Checks for usage of `iter().any()` on slices of `u8` or `i8` and suggests using `contains()` instead .
4290+ /// Checks for usage of `iter().any()` on slices of `u8`/ `i8` when it can be replaced with `contains()` and suggests doing so .
42914291 ///
42924292 /// ### Why is this bad?
4293- /// `iter().any() ` on slices of `u8` or `i8` is optimized to use `memchr` .
4293+ /// `contains() ` on slices of `u8`/ `i8` is faster than `iter().any()` in such cases .
42944294 ///
42954295 /// ### Example
42964296 /// ```no_run
@@ -4307,7 +4307,7 @@ declare_clippy_lint! {
43074307 #[ clippy:: version = "1.85.0" ]
43084308 pub SLICE_ITER_ANY ,
43094309 perf,
4310- "using `contains()` instead of `iter().any()` on u8/i8 slices is more efficient "
4310+ "using `contains()` instead of `iter().any()` on `u8`/`i8` slices is more fast "
43114311}
43124312
43134313pub struct Methods {
You can’t perform that action at this time.
0 commit comments