Skip to content

Commit 0f971c1

Browse files
authored
chore(rust): use lint table (#75)
1 parent 14ebc1d commit 0f971c1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Diff for: Cargo.toml

+11
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

Diff for: src/lib.rs

-3
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)