needless_match false positive #9084
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
In the following snipped, clippy marks the match statement as needless and provides an incorrect quick fix.
Lint Name
needless_match
Reproducer
I tried this code: (advent of code, year 21 day 20)
I saw this happen:
I expected to see this happen:
no warning
Version
this is weird though, I'm pretty sure this bug was introduced with 1.62
rustup show
:The text was updated successfully, but these errors were encountered: