瀏覽代碼

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

sbatial 2 年之前
父節點
當前提交
b56d6592a1
共有 1 個文件被更改,包括 1 次插入2 次删除
  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,
         }
     }