-
Notifications
You must be signed in to change notification settings - Fork 1.7k
False positive when not *yet* using map value? #6368
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
Comments
I think it is still more idiomatic to use |
@camsteffen Well, I'm curious then, what's the supposed use case for the I personally use As a consequence, this Clippy warning gets in my way. I either need to:
Alternately, if this was considered false positive, I would just leave my code as is, have no warning. And change Do you think it is a legitimate workflow, or am I making a wrong use of the |
As I see it, the general usefulness of the |
Okay I think I get it. Clippy warnings are intended to refer to completed code. If my code is incomplete, then obviously I have warnings. If my code is complete, then clippy is right that I should use To conclude: not a false positive. Thank you for your patience @camsteffen :) |
The following code
yields
But I disagree. I would agree if I had written
(key, _)
instead, but with(key, _value)
, I explicitely opted in requesting values but not using them. Is this enough to consider this a false positive?The text was updated successfully, but these errors were encountered: