From 37235d1e204edf0f378fd8bd7e6fe1176c55856a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 18 Mar 2023 16:28:02 +0100 Subject: [PATCH] build.rs: ignore a clippy warning: match_same_arms --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 5201b9169..04948c0d3 100644 --- a/build.rs +++ b/build.rs @@ -20,6 +20,8 @@ pub fn main() { for (key, val) in env::vars() { if val == "1" && key.starts_with(ENV_FEATURE_PREFIX) { let krate = key[ENV_FEATURE_PREFIX.len()..].to_lowercase(); + // Allow this as we have a bunch of info in the comments + #[allow(clippy::match_same_arms)] match krate.as_ref() { "default" | "macos" | "unix" | "windows" | "selinux" | "zip" => continue, // common/standard feature names "nightly" | "test_unimplemented" => continue, // crate-local custom features