Sfoglia il codice sorgente

lint: use let-else instead of 2-arm-match

sbatial 2 anni fa
parent
commit
b56d6592a1
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/output/table.rs

+ 1 - 2
src/output/table.rs

@@ -190,8 +190,7 @@ impl Column {
             Self::Inode      |
             Self::Blocksize  |
             Self::GitStatus  => Alignment::Right,
-            Self::Timestamp(_) | 
-            _                => Alignment::Left,
+            _ => Alignment::Left,
         }
     }