Skip to content

Commit 3cd177d

Browse files
authored
Merge pull request #1072 from dashed/patch-1
Add note on how to enable the optional dependency
2 parents 46d8f62 + b71b1a0 commit 3cd177d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ And, in your `main.rs` or `lib.rs`:
286286
#![cfg_attr(feature="clippy", plugin(clippy))]
287287
```
288288

289+
Then build by enabling the feature: `cargo build --features "clippy"`
290+
289291
Instead of adding the `cfg_attr` attributes you can also run clippy on demand:
290292
`cargo rustc --features clippy -- -Z no-trans -Z extra-plugins=clippy`
291293
(the `-Z no trans`, while not neccessary, will stop the compilation process after

0 commit comments

Comments
 (0)