diff options
Diffstat (limited to 'src/util/unix.rs')
-rw-r--r-- | src/util/unix.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/unix.rs b/src/util/unix.rs index 6a52c3a..b2105a9 100644 --- a/src/util/unix.rs +++ b/src/util/unix.rs @@ -3,7 +3,9 @@ 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 as u32) != 0) + LIBC_PERMISSION_VALS + .iter() + .any(|val| mode & (*val as u32) != 0) } pub fn stringify_mode(mode: u32) -> String { |