Skip to content

Commit 80bafa5

Browse files
committed
add cargo.toml lint section way of adding lints
1 parent a2c1d56 commit 80bafa5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

book/src/configuration.md

+9
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ interested in:
7979
cargo clippy -- -A clippy::all -W clippy::useless_format -W clippy::...
8080
```
8181

82+
The last way to allow/disallow lints is to use `Cargo.toml` using [the lints section](https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-lints-section)):
83+
84+
To deny `clippy::enum_glob_use`
85+
86+
```toml
87+
[lints.clippy]
88+
enum_glob_use = "deny"
89+
```
90+
8291
### Specifying the minimum supported Rust version
8392

8493
Projects that intend to support old versions of Rust can disable lints pertaining to newer features by specifying the

0 commit comments

Comments
 (0)