diff --git a/Cargo.toml b/Cargo.toml index 72f09d7..2d451f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,10 @@ keywords = ["fmt", "no_std"] categories = ["no-std", "rust-patterns", "value-formatting"] exclude = [".*"] +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = ['cfg(fmt_cmp_semver_exempt)'] + [features] default = ["alloc"] diff --git a/src/int/traits.rs b/src/int/traits.rs index d9cf0fb..4d40e54 100644 --- a/src/int/traits.rs +++ b/src/int/traits.rs @@ -1,3 +1,6 @@ +// We are using a hack to polyfill the `ilog` methods. +#![allow(clippy::incompatible_msrv)] + /// A trait for integer types that can be compared with [`cmp_int`](super::cmp_int) function. /// /// This trait is sealed and cannot be implemented outside of `fmt_cmp` crate.