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

Clippy warns about use of a redundant closure #472

Open
zslayton opened this issue Feb 21, 2023 · 0 comments
Open

Clippy warns about use of a redundant closure #472

zslayton opened this issue Feb 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@zslayton
Copy link
Contributor

clippy currently emits a warning about a redundant closure:

image

However, if you accept its suggestion and remove the closure, the resulting code causes a compiler error about lifetime inference. This appears to be a bug in clippy.

@zslayton zslayton added the bug Something isn't working label Feb 21, 2023
zslayton pushed a commit that referenced this issue Mar 14, 2023
This PR suppresses an invalid clippy warning.

See issue #472 for details.
zslayton added a commit that referenced this issue Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant