Open crumblingstatue opened 4 months ago
I guess technically the suggestion can be applied (without removing the if let though), so I'm having second thoughts about whether this really is a false positive, but the suggestion is definitely misleading.
Summary
The
manual_flatten
lint doesn't take into account nested refutable patterns.Lint Name
manual_flatten
Reproducer
I tried this code:
Clippy output:
It shouldn't suggest to remove the
if let
statement, because it's still needed to refutably matchData::Wanted
.Version
Additional Labels
No response