Skip to content

Commit 7bd7d40

Browse files
committed
Auto merge of #4350 - matthiaskrgr:readme_cargo_fix_clippy, r=phansch
README: mention experimental cargo fix clippy support mention that cargo fix has experimental support for applying some clippy lint suggestions via "cargo fix -Z unstable-options --clippy" [Rendered](https://github.com/matthiaskrgr/rust-clippy/tree/readme_cargo_fix_clippy#auto-applying-clippy-suggestions) changelog: none
2 parents e76ef1d + 39cdea6 commit 7bd7d40

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ Now you can run Clippy by invoking the following command:
8080
cargo clippy
8181
```
8282

83+
#### Automatically applying Clippy suggestions
84+
85+
Some Clippy lint suggestions can be automatically applied by `cargo fix`.
86+
Note that this is still experimental and only supported on the nightly channel:
87+
88+
```terminal
89+
cargo fix -Z unstable-options --clippy
90+
```
91+
8392
### Running Clippy from the command line without installing it
8493

8594
To have cargo compile your crate with Clippy without Clippy installation

0 commit comments

Comments
 (0)