Skip to content

Commit

Permalink
fix: 🚨 fix linter warning for unkown feature
Browse files Browse the repository at this point in the history
In rust 1.80 compile-time checks for unkown features are introduced. Therefore workspace lints for unkown features are enabled.
  • Loading branch information
dergecko committed Oct 28, 2024
1 parent c5b1216 commit 4e70b7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ categories = ["os::unix-apis", "filesystem"]
license = "MIT OR Apache-2.0"
edition = "2018"
rust-version = "1.48"

[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin)'] }
3 changes: 3 additions & 0 deletions procfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ all-features = true
[[bench]]
name = "cpuinfo"
harness = false

[lints]
workspace = true

0 comments on commit 4e70b7b

Please sign in to comment.