]> git.lizzy.rs Git - rust.git/blobdiff - README.md
Merge pull request #1296 from Manishearth/features
[rust.git] / README.md
index 4223ee2b017b00f3eb800a070273fad46ab056ef..df96a2fed1ffb0a288ce58cce6a5c8269f78a6d8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -163,6 +163,14 @@ You can add options  to `allow`/`warn`/`deny`:
 
 Note: `deny` produces errors instead of warnings.
 
+For convenience, `cargo clippy` automatically defines a `cargo-clippy`
+features. This lets you set lints level and compile with or without clippy
+transparently:
+
+```rust
+#[cfg_attr(feature = "cargo-clippy", allow(needless_lifetimes))]
+```
+
 ## Link with clippy service
 
 `clippy-service` is a rust web initiative providing `rust-clippy` as a web service.