Issue related to `clippy`
ChrisVilches opened this issue · 1 comments
ChrisVilches commented
For some reason when running:
cargo clippy --fix --allow-dirty
Instead of just cargo clippy
, there's the probability that more lint warnings will be displayed.
For example, this message doesn't appear by simply running cargo clippy
:
warning: the function has a cognitive complexity of (26/25)
But it does appear when running the command above with --fix
.
ChrisVilches commented
This might be the solution:
touch src/main.rs && cargo clippy
I think clippy caches the result and then forgets to re-run when a re-run is needed (probably a bug). But touch
ing the file may fix it, I think.