From cf279c42f10e54f09592fb4144cf41da7312b7e6 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Tue, 13 May 2025 17:50:41 -0300 Subject: [PATCH] style: add trailing commas in ColumnType match arms --- src/modes/list.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modes/list.rs b/src/modes/list.rs index 6026222..516c978 100644 --- a/src/modes/list.rs +++ b/src/modes/list.rs @@ -141,10 +141,10 @@ pub fn mode_list( }, ColumnType::Compression => { Cell::new(&string_column(item.compression.to_string(), column_width)) - } + }, ColumnType::DigestType => { Cell::new(&string_column(item.digest_type.to_string(), column_width)) - } + }, ColumnType::DigestValue => { match item.digest_value { Some(ref value) => Cell::new(&string_column(value.to_string(), column_width)), @@ -152,7 +152,7 @@ pub fn mode_list( .with_style(Attr::ForegroundColor(color::RED)) .with_style(Attr::Bold), } - } + }, ColumnType::FileSize => match item_path.metadata() { Ok(metadata) => Cell::new_align( &size_column(