Unnecessary direct unwraps on Option and Result are not warned/fixed #10352
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
Uh oh!
There was an error while loading. Please reload this page.
Summary
When we have direct unwraps on an
Option
orResult
like the following:The lint remove the unnecessary unwrap/expect and unnecessary wraps from the above lines.
Lint Name
unnecessary_unwrap
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Nothing changed.
Version
No response
The text was updated successfully, but these errors were encountered: