Add +nightly to command for running cargo build.

This commit is contained in:
Darren Tsung 2017-12-21 15:24:18 -08:00
parent 1d523ce8f7
commit 203038cbe5
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ And, in your `main.rs` or `lib.rs`, add these lines:
#![cfg_attr(feature="clippy", plugin(clippy))]
```
Then build by enabling the feature: `cargo build --features "clippy"`
Then build by enabling the feature: `cargo +nightly build --features "clippy"`.
Instead of adding the `cfg_attr` attributes you can also run clippy on demand:
`cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy`