diff --git a/src/file.rs b/src/file.rs index 0a96527..88092b5 100644 --- a/src/file.rs +++ b/src/file.rs @@ -425,8 +425,7 @@ impl<'a> File<'a> { /// Helper method for the permissions string. fn permission_bit(bits: mode_t, bit: mode_t, character: &'static str, style: Style) -> ANSIString<'static> { - let bi32 = bit as u16; - if bits & bi32 == bi32 { + if bits & bit == bit { style.paint(character) } else {