-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lint Iterator::fold
s that can be one of the special methods
#2237
Comments
Also |
Bonus points: |
I'd like to give this a go. Any pointers to get started? |
There are already many iterator method lints in You should be able to add a new branch for which does this for the |
Great, thanks! |
@oli-obk |
I just found
.fold(false, |acc, x| acc || x.starts_with("--target"));
in rustc. That should obviously be.any(|x| x.starts_with("--target"))
The text was updated successfully, but these errors were encountered: