We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2179f4d + 203038c commit ebcdf03Copy full SHA for ebcdf03
README.md
@@ -40,15 +40,14 @@ clippy = {version = "*", optional = true}
40
default = []
41
```
42
43
-And, in your `main.rs` or `lib.rs`:
+And, in your `main.rs` or `lib.rs`, add these lines:
44
45
```rust
46
#![cfg_attr(feature="clippy", feature(plugin))]
47
-
48
#![cfg_attr(feature="clippy", plugin(clippy))]
49
50
51
-Then build by enabling the feature: `cargo build --features "clippy"`
+Then build by enabling the feature: `cargo +nightly build --features "clippy"`.
52
53
Instead of adding the `cfg_attr` attributes you can also run clippy on demand:
54
`cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy`
0 commit comments