summaryrefslogtreecommitdiffstats
path: root/src/file.rs
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-03 16:40:39 +0100
committerBen S <ogham@bsago.me>2015-05-03 16:40:39 +0100
commit5887aa8cde6b4bc9e3a769dbe9ba276ea7e58bdf (patch)
tree1d713da8ee908e0a4c1c42e3e609d6edfe4deaf1 /src/file.rs
parent42a347c063909ae658884293d8a4074200b504dc (diff)
Remove broken conversion
Diffstat (limited to 'src/file.rs')
-rw-r--r--src/file.rs3
1 files changed, 1 insertions, 2 deletions
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 {