# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 2024-11-18 14:42:09 # Node ID 33d8cb64e9da2dcf36f85947ffa74a1c0ef3afda # Parent 56e8841a454ce38946476561c170866d8999f9bf rust: fix darwin build diff --git a/rust/hg-core/src/revlog/options.rs b/rust/hg-core/src/revlog/options.rs --- a/rust/hg-core/src/revlog/options.rs +++ b/rust/hg-core/src/revlog/options.rs @@ -113,7 +113,7 @@ const fn can_populate_mmap() -> bool { /// There is a of populating mmaps for Windows, but it would need testing. #[cfg(not(target_os = "linux"))] -const fn can_populate_mmap() { +const fn can_populate_mmap() -> bool { false } diff --git a/rust/hg-core/src/vfs.rs b/rust/hg-core/src/vfs.rs --- a/rust/hg-core/src/vfs.rs +++ b/rust/hg-core/src/vfs.rs @@ -37,7 +37,8 @@ fn get_umask() -> u32 { // setting it? Doesn't this affect all threads in this tiny window? let mask = libc::umask(0); libc::umask(mask); - mask & 0o777 + #[allow(clippy::useless_conversion)] + (mask & 0o777).into() }) }