manual_unwrap_or
is not showing for simple ref cases
#11795
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
This case is not detected. I suspect this is due to the initial fix for #7228 (?).
Lint Name
manual_unwrap_or
Reproducer
I tried this code:
I expected to see this happen: a warning to simplify the match statement to use
unwrap_or
Instead, this happened: no warnings
Version
The text was updated successfully, but these errors were encountered: