-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Wrong help message suggested for unwrap_or_else
#13293
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
Labels
C-bug
Category: Clippy is not doing the correct thing
Comments
Unnecessary closure used to substitute value for
Option::None``Unnecessary closure used
Unnecessary closure used
unwrap_or_else
The part after the |
bors
added a commit
that referenced
this issue
Aug 24, 2024
Loading
Loading status checks…
…xendoo Fix suggestion unnecessary_lazy_eval As mentioned at #13293 improve suggestion via span_suggestion_verbose changelog[`unnecessary_lazy_eval`]: use span_suggestion_verbose for suggestions
bors
added a commit
that referenced
this issue
Aug 24, 2024
Loading
Loading status checks…
…xendoo Fix suggestion unnecessary_lazy_eval As mentioned at #13293 improve suggestion via span_suggestion_verbose changelog: none
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
I've encountered a small issue when clippy generates a help message.
I'm using
unwrap_or_else
and it hint's me to useunwrap_or
providing againunwrap_or
as instead example ( instead of myunwrap_or_else
).I'm happy to work on fixing this if it's not a duplicate / or taken in work by someone else.
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: