manual_unwrap_or_default
does not take into account mutable code in the else branch
#12580
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Nightly clippy with
manual_unwrap_or_default
seems to ignore mutable code in the else branch.Lint Name
manual_unwrap_or_default
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No lint emitted as it's not applicable.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: