manual_unwrap_or_default ignores side effect for None branch #12569
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
manual_unwrap_or_default lint's suggestion ignores the side effect(s) present in the
None
branch.Reproducer
Clippy makes the side effect disappear with its suggestion.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: