File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ as an included feature during build. All of these options are detailed below.
35
35
36
36
As a general rule clippy will only work with the * latest* Rust nightly for now.
37
37
38
+ To install Rust nightly, the recommended way is to use [ rustup] ( https://rustup.rs/ ) :
39
+
40
+ ``` terminal
41
+ rustup install nightly
42
+ ```
43
+
38
44
### As a cargo subcommand (` cargo clippy ` )
39
45
40
46
One way to use clippy is by installing clippy through cargo as a cargo
@@ -48,6 +54,13 @@ cargo +nightly install clippy
48
54
49
55
Now you can run clippy by invoking ` cargo +nightly clippy ` .
50
56
57
+ To update the subcommand together with the latest nightly use the [ rust-update] ( rust-update ) script or run:
58
+
59
+ ``` terminal
60
+ rustup update nightly
61
+ cargo +nightly install --force clippy
62
+ ```
63
+
51
64
In case you are not using rustup, you need to set the environment flag
52
65
` SYSROOT ` during installation so clippy knows where to find ` librustc ` and
53
66
similar crates.
@@ -191,7 +204,7 @@ You can add options to `allow`/`warn`/`deny`:
191
204
Note: ` deny ` produces errors instead of warnings.
192
205
193
206
For convenience, ` cargo clippy ` automatically defines a ` cargo-clippy `
194
- features . This lets you set lints level and compile with or without clippy
207
+ feature . This lets you set lint levels and compile with or without clippy
195
208
transparently:
196
209
197
210
``` rust
You can’t perform that action at this time.
0 commit comments