-
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
for index in range() used for iteration over slice #3
Comments
Similarly, I've seen let mut i = 0;
for val in v.iter() {
//...
i += 1;
} which would be better expressed with |
Manishearth
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-middle
Type: Probably requires verifiying types
A-lint
Area: New lints
labels
Aug 11, 2015
birkenfeld
added a commit
to birkenfeld/rust-clippy
that referenced
this issue
Aug 12, 2015
birkenfeld
added a commit
to birkenfeld/rust-clippy
that referenced
this issue
Aug 12, 2015
camsteffen
added a commit
to camsteffen/rust-clippy
that referenced
this issue
Jan 15, 2021
# This is the 1st commit message: Split filter_map into manual_filter_map # The commit message rust-lang#2 will be skipped: # fixup! Split filter_map into manual_filter_map # The commit message rust-lang#3 will be skipped: # fixup! Split filter_map into manual_filter_map # The commit message rust-lang#4 will be skipped: # fixup! Split filter_map into manual_filter_map # The commit message rust-lang#5 will be skipped: # fixup! Split filter_map into manual_filter_map # The commit message rust-lang#6 will be skipped: # fixup! Split filter_map into manual_filter_map
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This might have to wait a while, and it might be really hard / impossible to detect, but for a simple loop like this:
you should just use an iterator.
The text was updated successfully, but these errors were encountered: