Skip to content

Commit

Permalink
chore(rust): use lint table (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Nov 29, 2023
1 parent 14ebc1d commit 0f971c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ readme = "README.md"

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

[lints.rust]
unsafe_code = "warn"
missing_docs = "warn"

[lints.clippy]
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"
print_stdout = "warn"
print_stderr = "warn"

[[bench]]
name = "bench"
harness = false
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//! Rusty [`webpack-sources`](https://github.com/webpack/webpack-sources) port.
#![warn(unsafe_code)]
#![deny(missing_docs)]

mod cached_source;
mod concat_source;
mod error;
Expand Down

0 comments on commit 0f971c1

Please sign in to comment.