False positivie (I think): blocks_in_conditions #12642
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
The project is using the rocket web framework, and I get the issue on a struct deriving
FromForm
.This is the output I get for
cargo clippy
:Using
clippy 0.1.77 (7cf61eb 2024-03-27)
Full code can be found here: https://github.com/LinneaStudenttidning/news-site
Lint Name
blocks_in_conditions
Reproducer
I tried this code:
I also tried to suppress the error like this:
But that still fails! (With the same error...)
Then I saw the error mentioned above.
I expected to see this happen:
Nothing, since the code does not directly reference a match statement. I guess there could be some "hidden" match statement behind for example the derive macro...
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: