restrict: str_literal.chars().any(|x| x == c)
affects performance negatively
#10389
Labels
A-lint
Area: New lints
What it does
prevents
str_literal.chars().any(|x| x == c)
.Lint Name
str_literal_chars_any
Category
restriction
Advantage
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: