Explorar o código

Remove redundant slicing

Ben S %!s(int64=11) %!d(string=hai) anos
pai
achega
bcaed1ff35
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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("-")
         }
     }
 }