Add an unnecessary_cast suppression

Continue to help fix BSD builds.
This commit is contained in:
Peter Ammon
2025-10-05 20:12:55 -07:00
parent e99eca47c3
commit 7d59b4f4e2

View File

@@ -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 {