Chester Liu %!s(int64=4) %!d(string=hai) anos
pai
achega
0ea8f17b22
Modificáronse 2 ficheiros con 6 adicións e 4 borrados
  1. 1 1
      src/fs/file.rs
  2. 5 3
      src/output/table.rs

+ 1 - 1
src/fs/file.rs

@@ -617,6 +617,6 @@ mod filename_test {
     #[test]
     #[cfg(unix)]
     fn topmost() {
-        assert_eq!("/", File::filename(Path::new("/")));
+        assert_eq!("/", File::filename(Path::new("/")))
     }
 }

+ 5 - 3
src/output/table.rs

@@ -159,11 +159,13 @@ impl Column {
             _                => Alignment::Left,
         }
     }
+
     #[cfg(windows)]
     pub fn alignment(&self) -> Alignment {
-        match *self {
-            Column::FileSize | Column::GitStatus => Alignment::Right,
-            _ => Alignment::Left,
+        match self {
+            Self::FileSize   |
+            Self::GitStatus  => Alignment::Right,
+            _                => Alignment::Left,
         }
     }