Suggest replacing 'iter().any(|x| x == y)' with 'contains' where appropriate #2534
Labels
A-lint
Area: New lints
L-perf
Lint: Belongs in the perf lint group
L-unnecessary
Lint: Warn about unnecessary code
T-middle
Type: Probably requires verifiying types
Particularly for
str.chars().any
or types with non-default implementations ofSliceContains
.The text was updated successfully, but these errors were encountered: