diff --git a/Cargo.toml b/Cargo.toml index 291c54f..859016f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,9 @@ default = ["substr"] substr = [] substr-usize-indices = ["substr"] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom, msrv)'] } + [dependencies] serde = { version = "1", default-features = false, optional = true } diff --git a/src/lib.rs b/src/lib.rs index 0bbd28e..4f0cae3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,8 +64,6 @@ #![cfg_attr(not(feature = "std"), no_std)] #![deny(missing_docs)] #![allow(unknown_lints)] -// for `cfg(loom)` and such -- I don't want to add a build.rs for this. -#![allow(unexpected_cfgs)] #[doc(hidden)] pub extern crate alloc;