manual_unwrap_or_default
triggers on code with mutation
#12553
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
seems to be assuming that the unwrapped value is not mutated.Lint Name
manual_unwrap_or_default
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning, as the proposed replacement is not equivalent.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: