fix: remove unused imports and non-const format builder
This commit is contained in:
@@ -45,7 +45,7 @@ pub fn size_column(size: u64, human_readable: bool, column_width: usize) -> Stri
|
||||
string_column(format_size(size, human_readable), column_width)
|
||||
}
|
||||
|
||||
pub const FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: prettytable::format::TableFormat =
|
||||
pub fn get_format_box_chars_no_border_line_separator() -> TableFormat {
|
||||
prettytable::format::FormatBuilder::new()
|
||||
.column_separator('│')
|
||||
.borders('│')
|
||||
@@ -62,4 +62,5 @@ pub const FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: prettytable::format::TableF
|
||||
prettytable::format::LineSeparator::new('─', '┴', '└', '┘')
|
||||
)
|
||||
.padding(1, 1)
|
||||
.build();
|
||||
.build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user