Identical match arm not detected #11223
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-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Clippy doesn't catch that match arms are identical when using
if
onSome
.Lint Name
match_same_arms
Reproducer
I tried this code:
I expected to see this happen: Clippy would catch that the arms are identical.
Instead, this happened: Nothing. Clippy didn't catch on.
Version
The text was updated successfully, but these errors were encountered: