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

redundant_closure should detect trivial method calls #3469

Closed
asomers opened this issue Nov 29, 2018 · 0 comments · Fixed by #3756
Closed

redundant_closure should detect trivial method calls #3469

asomers opened this issue Nov 29, 2018 · 0 comments · Fixed by #3756

Comments

@asomers
Copy link

asomers commented Nov 29, 2018

The redundant_closure lint currently works for functions, but not for methods. It should also detect redundant closures like this: Some(x).map(x.foo()).

> cargo +nightly clippy -V
clippy 0.0.212 (481f7880 2018-10-30)
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant