mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
Auto merge of #3579 - matthiaskrgr:tool_lints, r=flip1995
update CARGO_CLIPPY_HELP string to suggest tool lints.
This commit is contained in:
commit
19af82c0ad
1 changed files with 2 additions and 3 deletions
|
@ -33,10 +33,9 @@ with:
|
||||||
-D --deny OPT Set lint denied
|
-D --deny OPT Set lint denied
|
||||||
-F --forbid OPT Set lint forbidden
|
-F --forbid OPT Set lint forbidden
|
||||||
|
|
||||||
The feature `cargo-clippy` is automatically defined for convenience. You can use
|
You can use tool lints to allow or deny lints from your code, eg.:
|
||||||
it to allow or deny lints from the code, eg.:
|
|
||||||
|
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(needless_lifetimes))]
|
#[allow(clippy::needless_lifetimes)]
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
fn show_help() {
|
fn show_help() {
|
||||||
|
|
Loading…
Reference in a new issue