Skip to content

Commit de70034

Browse files
committed
chore(rust): use lint table
1 parent 14ebc1d commit de70034

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ readme = "README.md"
1313

1414
include = ["/src/**/*.rs", "/*.toml", "/LICENSE", "/README.md"]
1515

16+
[lints.rust]
17+
unsafe_code = "warn"
18+
missing_docs = "warn"
19+
20+
[lints.clippy]
21+
dbg_macro = "warn"
22+
todo = "warn"
23+
unimplemented = "warn"
24+
print_stdout = "warn"
25+
print_stderr = "warn"
26+
1627
[[bench]]
1728
name = "bench"
1829
harness = false

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//! Rusty [`webpack-sources`](https://github.com/webpack/webpack-sources) port.
22
3-
#![warn(unsafe_code)]
4-
#![deny(missing_docs)]
5-
63
mod cached_source;
74
mod concat_source;
85
mod error;

0 commit comments

Comments
 (0)