# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1731940929 -3600 # Node ID 33d8cb64e9da2dcf36f85947ffa74a1c0ef3afda # Parent 56e8841a454ce38946476561c170866d8999f9bf rust: fix darwin build diff -r 56e8841a454c -r 33d8cb64e9da rust/hg-core/src/revlog/options.rs --- a/rust/hg-core/src/revlog/options.rs Mon Nov 04 15:28:32 2024 +0100 +++ b/rust/hg-core/src/revlog/options.rs Mon Nov 18 15:42:09 2024 +0100 @@ -113,7 +113,7 @@ /// 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 -r 56e8841a454c -r 33d8cb64e9da rust/hg-core/src/vfs.rs --- a/rust/hg-core/src/vfs.rs Mon Nov 04 15:28:32 2024 +0100 +++ b/rust/hg-core/src/vfs.rs Mon Nov 18 15:42:09 2024 +0100 @@ -37,7 +37,8 @@ // 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() }) }