-
Notifications
You must be signed in to change notification settings - Fork 1.7k
lint Iterator::fold
s that can be one of the special methods
#2237
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: