diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-08-29 22:09:33 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-08-29 22:09:33 -0400 |
commit | a592bfe51c0cbb7744f14586520827cb06da8c8d (patch) | |
tree | 4c8b512672d788eef7462fa47ec89c9c15c9f0ff /src/util | |
parent | 5be4a5f472655a76e1430bad09a19f6ad111e474 (diff) | |
parent | 8c9500478c09fe8a224309605e12c5f52f32db62 (diff) |
Merge branch 'master' into dev
Diffstat (limited to 'src/util')
-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 { |