style: add trailing commas in ColumnType match arms
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
1aaf1e6221
commit
cf279c42f1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user