Remove redundant slicing

This commit is contained in:
Ben S 2014-12-12 14:17:57 +00:00
parent 57430dbbe5
commit bcaed1ff35

View File

@ -282,10 +282,10 @@ impl<'a> File<'a> {
fn permission_bit(bits: io::FilePermission, bit: io::FilePermission, character: &'static str, style: Style) -> ANSIString { fn permission_bit(bits: io::FilePermission, bit: io::FilePermission, character: &'static str, style: Style) -> ANSIString {
if bits.contains(bit) { if bits.contains(bit) {
style.paint(character.as_slice()) style.paint(character)
} }
else { else {
GREY.paint("-".as_slice()) GREY.paint("-")
} }
} }
} }