mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Merge branch 'pr-445'
This commit is contained in:
commit
1a90bbff72
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@ 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 of `Warn` lints using the `clippy` lint group (`#![deny(clippy)]`)
|
||||
- all lints using both the `clippy` and `clippy_pedantic` lint groups (`#![deny(clippy)]`, `#![deny(clippy_pedantic)]`). Note that `clippy_pedantic` contains some very aggressive lints prone to false positives.
|
||||
- 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…
Add table
Reference in a new issue