From ca6e57444fb7e107cda314cf82dd08e2719ef55b Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 30 May 2024 10:17:12 +0200 Subject: [PATCH] Fix warnings about `cfg(fuzzing)` Rust now warns about unexpected `cfg` conditions. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3a4d33c..3ca13c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,9 @@ const_mut_refs = [] version = "0.2.5" optional = true +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } + [package.metadata.release] dev-version = false pre-release-replacements = [