build.rs: fix MSRV (1.70) clippy

(cherry picked from commit 86ec8994e6)
This commit is contained in:
Johannes Altmanninger
2025-09-30 12:05:12 +02:00
parent a143a67318
commit 0ace46d127

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