소스 검색

Remove redundant slicing

Ben S 11 년 전
부모
커밋
bcaed1ff35
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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("-")
         }
     }
 }