Browse Source

Remove redundant slicing

Ben S 11 năm trước cách đây
mục cha
commit
bcaed1ff35
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/file.rs

+ 2 - 2
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("-")
         }
     }
 }