mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-22 20:15:11 +00:00
Remove redundant slicing
This commit is contained in:
parent
57430dbbe5
commit
bcaed1ff35
@ -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("-")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user