diff options
author | Ben S <ogham@bsago.me> | 2014-12-12 14:17:57 +0000 |
---|---|---|
committer | Ben S <ogham@bsago.me> | 2014-12-12 14:17:57 +0000 |
commit | bcaed1ff351263255804edba18fffe94b3277213 (patch) | |
tree | 4a40d236fbb085bcd12e7beb01f6f92082f7e9c6 /src/file.rs | |
parent | 57430dbbe5835769dae905dc2fd6b0d3ce541352 (diff) |
Remove redundant slicing
Diffstat (limited to 'src/file.rs')
-rw-r--r-- | src/file.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.rs b/src/file.rs index 635931a..d494ab8 100644 --- a/src/file.rs +++ b/src/file.rs @@ -282,10 +282,10 @@ impl<'a> File<'a> { fn permission_bit(bits: io::FilePermission, bit: io::FilePermission, character: &'static str, style: Style) -> ANSIString { if bits.contains(bit) { - style.paint(character.as_slice()) + style.paint(character) } else { - GREY.paint("-".as_slice()) + GREY.paint("-") } } } |