-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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.map(|x| x) #5626
Labels
Comments
flip1995
added
the
good-first-issue
These issues are a good way to get started with Clippy
label
May 21, 2020
Note that this will apply type adjustments on |
I'd like to try my hand at this! |
bors
added a commit
that referenced
this issue
Jun 23, 2020
#5626: lint iterator.map(|x| x) changelog: adds a new lint for iterator.map(|x| x) (see #5626) The code also lints for result.map(|x| x) and option.map(|x| x). Also, I'm not sure if I'm checking for type adjustments correctly and I can't think of an example where .map(|x| x) would apply type adjustments.
bors
added a commit
that referenced
this issue
Jun 23, 2020
#5626: lint iterator.map(|x| x) changelog: adds a new lint for iterator.map(|x| x) (see #5626) The code also lints for result.map(|x| x) and option.map(|x| x). Also, I'm not sure if I'm checking for type adjustments correctly and I can't think of an example where .map(|x| x) would apply type adjustments.
Hi, is this issue already resolved? If so, it would be better to close this. |
Closing in favor of #5694. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
This was most likely left over after some refactoring and can be removed entirely (at least I can't think of a reason to have
.map(|x| x)
in the code right now..)The text was updated successfully, but these errors were encountered: