From 82a4d123dbc6b96f041d53e3c1fd1fff5e0058cb Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 2 Sep 2023 13:29:09 -0700 Subject: [PATCH] Fix macOS tests Signed-off-by: John Nunley --- tests/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic.rs b/tests/basic.rs index c151af9..8ffdf30 100644 --- a/tests/basic.rs +++ b/tests/basic.rs @@ -28,7 +28,7 @@ fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result { let bin = dir.join(path).with_extension(extension); #[cfg(any(target_os = "macos", target_os = "linux"))] - let mode = rustix::fs::Mode::XUSR.bits(); + let mode = rustix::fs::Mode::XUSR.bits() as u32; let mode = 0o666 | mode; fs::OpenOptions::new() .write(true)