cargo clippy --fix
runs without warns on git repository without commit
#9838
Labels
C-bug
Category: Clippy is not doing the correct thing
Summary
When
cargo clippy --fix
is ran on a crate that is not managed by a VCS, it warns about it and does not modify the code. This also happens ifcargo clippy --fix
is ran in a git repository that has uncommiteed changes. However, when it is ran on a repository with uncommited changes but without any commit, it modifies the code without an error or a warning.Reproducer
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: