diff --git a/Cargo.toml b/Cargo.toml index 8ff86525..f60ebc44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/lib.rs b/src/lib.rs index c74b4de3..17da71ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -206,7 +206,6 @@ unused_qualifications, rust_2018_idioms )] -#![allow(unexpected_cfgs)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] mod cipher;