Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lint: detect needless character iteration #4817

Closed
euclio opened this issue Nov 14, 2019 · 0 comments · Fixed by #12815
Closed

New lint: detect needless character iteration #4817

euclio opened this issue Nov 14, 2019 · 0 comments · Fixed by #12815
Assignees
Labels
A-lint Area: New lints

Comments

@euclio
Copy link
Contributor

euclio commented Nov 14, 2019

As pointed out in #4796, it would be nice to catch instances of

"foo".chars().all(|c| c.is_ascii())

and replace it with

"foo".is_ascii()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: New lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants