diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/unix.rs b/src/util/unix.rs index 2113fc1..6a52c3a 100644 --- a/src/util/unix.rs +++ b/src/util/unix.rs @@ -3,7 +3,7 @@ use std::path::Path; pub fn is_executable(mode: u32) -> bool { const LIBC_PERMISSION_VALS: [libc::mode_t; 3] = [libc::S_IXUSR, libc::S_IXGRP, libc::S_IXOTH]; - LIBC_PERMISSION_VALS.iter().any(|val| mode & *val != 0) + LIBC_PERMISSION_VALS.iter().any(|val| mode & (*val as u32) != 0) } pub fn stringify_mode(mode: u32) -> String { |