diff --git a/build.rs b/build.rs index 0608381de..f1a663aaf 100644 --- a/build.rs +++ b/build.rs @@ -133,6 +133,7 @@ fn detect_bsd(_: &Target) -> bool { if !target.chars().all(|c| c.is_ascii_lowercase()) { target = target.to_ascii_lowercase(); } + #[allow(clippy::let_and_return)] // for old clippy let is_bsd = target.ends_with("bsd") || target.ends_with("dragonfly"); #[cfg(any( target_os = "dragonfly",