build.rs: fix MSRV (1.70) clippy

This commit is contained in:
Johannes Altmanninger
2025-09-30 12:05:12 +02:00
parent caf426ddb2
commit 86ec8994e6

View File

@@ -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",