ChrisVilches/Term-Keep

Issue related to `clippy`

Opened this issue · 1 comments

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.

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 touching the file may fix it, I think.