fix: remove unused imports and non-const format builder
This commit is contained in:
@@ -39,7 +39,6 @@ pub mod db;
|
|||||||
|
|
||||||
use compression::CompressionType;
|
use compression::CompressionType;
|
||||||
|
|
||||||
use is_terminal::IsTerminal;
|
|
||||||
|
|
||||||
extern crate term;
|
extern crate term;
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
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()
|
prettytable::format::FormatBuilder::new()
|
||||||
.column_separator('│')
|
.column_separator('│')
|
||||||
.borders('│')
|
.borders('│')
|
||||||
@@ -62,4 +62,5 @@ pub const FORMAT_BOX_CHARS_NO_BORDER_LINE_SEPARATOR: prettytable::format::TableF
|
|||||||
prettytable::format::LineSeparator::new('─', '┴', '└', '┘')
|
prettytable::format::LineSeparator::new('─', '┴', '└', '┘')
|
||||||
)
|
)
|
||||||
.padding(1, 1)
|
.padding(1, 1)
|
||||||
.build();
|
.build()
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use clap::Command;
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::modes::common::{format_size, string_column};
|
use crate::modes::common::format_size;
|
||||||
use is_terminal::IsTerminal;
|
use is_terminal::IsTerminal;
|
||||||
use crate::compression::get_engine;
|
use crate::compression::get_engine;
|
||||||
use crate::compression::CompressionType;
|
use crate::compression::CompressionType;
|
||||||
|
|||||||
Reference in New Issue
Block a user