Skip to content

Commit ebcdf03

Browse files
authored
Merge pull request #2286 from DarrenTsung/readme-clarify-add-lines
Clarify README for new Rust users.
2 parents 2179f4d + 203038c commit ebcdf03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ clippy = {version = "*", optional = true}
4040
default = []
4141
```
4242

43-
And, in your `main.rs` or `lib.rs`:
43+
And, in your `main.rs` or `lib.rs`, add these lines:
4444

4545
```rust
4646
#![cfg_attr(feature="clippy", feature(plugin))]
47-
4847
#![cfg_attr(feature="clippy", plugin(clippy))]
4948
```
5049

51-
Then build by enabling the feature: `cargo build --features "clippy"`
50+
Then build by enabling the feature: `cargo +nightly build --features "clippy"`.
5251

5352
Instead of adding the `cfg_attr` attributes you can also run clippy on demand:
5453
`cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy`

0 commit comments

Comments
 (0)