Skip to content

Commit b94238f

Browse files
committed
Mention -A and -W in readme
1 parent fca8053 commit b94238f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ enable/disable Clippy lints until `tool_lints` are stable:
145145
#![cfg_attr(feature = "cargo-clippy", allow(clippy_lint))]
146146
```
147147

148+
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.
149+
148150
## License
149151

150152
Licensed under [MPL](https://www.mozilla.org/MPL/2.0/).

0 commit comments

Comments
 (0)