From 7d59b4f4e2de3ab2ada06546ef0b73508d0d3bc1 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Sun, 5 Oct 2025 20:12:55 -0700 Subject: [PATCH] Add an unnecessary_cast suppression Continue to help fix BSD builds. --- src/path.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/path.rs b/src/path.rs index f0baeffc5..14a099b0a 100644 --- a/src/path.rs +++ b/src/path.rs @@ -703,6 +703,7 @@ pub fn path_remoteness(path: &wstr) -> DirRemoteness { // long on 32-bit NetBSD.. and always 4-bytes on macOS (even on 64-bit builds). #[allow(clippy::useless_conversion)] let flags = u64::from(buf.f_flags); + #[allow(clippy::unnecessary_cast)] if flags & (libc::MNT_LOCAL as u64) != 0 { DirRemoteness::local } else {