False positive branches_sharing_code: trailing expression in else of if-let #7054
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
Clippy's preferred code is the following, which does not compile.
It's possible that clippy means the following, but I still consider this a false positive because I find the original code clearer than this.
Meta
cargo clippy -V
: clippy 0.1.53 (2e495d2 2021-04-08)rustc -Vv
:Mentioning @xFrednet @phansch #6463
The text was updated successfully, but these errors were encountered: