Skip to content

Commit

Permalink
chore: Use the unexpected_cfgs option in the Cargo.toml file
Browse files Browse the repository at this point in the history
This allows us to use the unexpected_cfgs lint even though we have the
fuzzing cfg. More info can be found here[1].

[1]: rust-lang/cargo#13913
  • Loading branch information
poljar committed Jun 10, 2024
1 parent 77765da commit 153a9f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ rust-version = "1.65"
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

[features]
default = ["libolm-compat"]
js = ["getrandom/js"]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@
unused_qualifications,
rust_2018_idioms
)]
#![allow(unexpected_cfgs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

mod cipher;
Expand Down

0 comments on commit 153a9f4

Please sign in to comment.