almost_swapped
false positive on #[derive(clap::Subcommand)]
#10676
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
clap
4.0 raises what looks like a spuriousalmost_swapped
lint.Frustratingly, I don't appear to be able to silence the lint with
#![allow(clippy::almost_swapped)]
.Lint Name
almost_swapped
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: