File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -113,17 +113,14 @@ found [here](https://rust-lang.github.io/rust-clippy/master/index.html#msrv)
113
113
114
114
Very rarely, you may wish to prevent Clippy from evaluating certain sections of code entirely. You can do this with
115
115
[ conditional compilation] ( https://doc.rust-lang.org/reference/conditional-compilation.html ) by checking that the
116
- ` cargo- clippy` feature is not set. You may need to provide a stub so that the code compiles:
116
+ ` clippy ` cfg is not set. You may need to provide a stub so that the code compiles:
117
117
118
118
``` rust
119
- #[cfg(not(feature = " cargo- clippy" ) )]
119
+ #[cfg(not(clippy)]
120
120
include! (concat! (env! (" OUT_DIR" ), " /my_big_function-generated.rs" ));
121
121
122
- #[cfg(feature = " cargo- clippy" )]
122
+ #[cfg(clippy)]
123
123
fn my_big_function (_input : & str ) -> Option <MyStruct > {
124
124
None
125
125
}
126
126
```
127
-
128
- This feature is not actually part of your crate, so specifying ` --all-features ` to other tools, e.g. `cargo test
129
- --all-features`, will not disable it.
You can’t perform that action at this time.
0 commit comments