fix: remove unused imports and non-const format builder

This commit is contained in:
Andrew Phillips (aider)
2025-05-10 12:45:14 -03:00
parent f8b14cb570
commit bc85cdac6c
3 changed files with 4 additions and 4 deletions

View File

@@ -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()
}