From b94238f5b38587174fb7d0c11f1569961e491330 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 2 Oct 2018 10:39:51 +0200 Subject: [PATCH] Mention -A and -W in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b8684b38631a..40ece34c6faf 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,8 @@ enable/disable Clippy lints until `tool_lints` are stable: #![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))] ``` +If you do not want to include your lint levels in your code, you can globally enable/disable lints by passing extra flags to clippy during the run: `cargo clippy -- -A lint_name` will run clippy with `lint_name` disabled and `cargo clippy -- -W lint_name` will run it with that enabled. On newer compilers you may need to use `clippy::lint_name` instead. + ## License Licensed under [MPL](https://www.mozilla.org/MPL/2.0/).