mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
lint
This commit is contained in:
@@ -63,7 +63,7 @@ pub fn fmt_path_elide(p: &Path, width: usize) -> String {
|
||||
/// This function allows to specify an extra length to consider to elide path
|
||||
pub fn fmt_path_elide_ex(p: &Path, width: usize, extra_len: usize) -> String {
|
||||
let fmt_path: String = format!("{}", p.display());
|
||||
match fmt_path.width() + extra_len > width as usize {
|
||||
match fmt_path.width() + extra_len > width {
|
||||
false => fmt_path,
|
||||
true => {
|
||||
// Elide
|
||||
|
||||
Reference in New Issue
Block a user