mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
update readme to specify both lint groups are needed for the whole set
As a new user and newbie to rust, after reading this part of the readme("whole set"), I thought I was seeing a bug when I used `#![deny(clippy)]` but also had to add `#![deny(shadow_unrelated)]`.
But this explained it: 3322ffa8a0/src/lib.rs (L108)
This commit is contained in:
parent
140c34f85e
commit
44b2b26446
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ if let Some(y) = x { println!("{:?}", y) }
|
|||
```
|
||||
|
||||
You can add options to `allow`/`warn`/`deny`:
|
||||
- the whole set using the `clippy` lint group (`#![deny(clippy)]`, etc)
|
||||
- the whole set using the `clippy` and `clippy_pedantic` lint groups (`#![deny(clippy)]`, `#![deny(clippy_pedantic)]`, etc)
|
||||
- only some lints (`#![deny(single_match, box_vec)]`, etc)
|
||||
- `allow`/`warn`/`deny` can be limited to a single function or module using `#[allow(...)]`, etc
|
||||
|
||||
|
|
Loading…
Reference in a new issue