Wrong help message suggested for unwrap_or_else
#13293
Labels
C-bug
Category: Clippy is not doing the correct thing
unwrap_or_else
#13293
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: