book: Fix example code
Fix example code of the "Disabling evaluation of certain code" section in the configuration chapter.
This commit is contained in:
parent
5aae5f6ae6
commit
e61288cbf0
@ -133,7 +133,7 @@ Very rarely, you may wish to prevent Clippy from evaluating certain sections of
|
|||||||
`clippy` cfg is not set. You may need to provide a stub so that the code compiles:
|
`clippy` cfg is not set. You may need to provide a stub so that the code compiles:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#[cfg(not(clippy)]
|
#[cfg(not(clippy))]
|
||||||
include!(concat!(env!("OUT_DIR"), "/my_big_function-generated.rs"));
|
include!(concat!(env!("OUT_DIR"), "/my_big_function-generated.rs"));
|
||||||
|
|
||||||
#[cfg(clippy)]
|
#[cfg(clippy)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user