clippy::option-if-let-else suggests a worse code. #7006
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Lint name: clippy::option-if-let-else
I tried this code:
I expected to see no errors.
Instead, this happened:
Meta
cargo clippy -V
: clippy 0.1.53 (4a20eb6 2021-03-28)rustc -Vv
:The text was updated successfully, but these errors were encountered: