mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
lint
This commit is contained in:
@@ -389,7 +389,7 @@ impl Formatter {
|
|||||||
// Get byte size
|
// Get byte size
|
||||||
let size: ByteSize = ByteSize(fsentry.metadata().size);
|
let size: ByteSize = ByteSize(fsentry.metadata().size);
|
||||||
// Add to cur str, prefix and the key value
|
// Add to cur str, prefix and the key value
|
||||||
format!("{}{}{:10}", cur_str, prefix, size.to_string())
|
format!("{}{}{:10}", cur_str, prefix, size)
|
||||||
} else if fsentry.metadata().symlink.is_some() {
|
} else if fsentry.metadata().symlink.is_some() {
|
||||||
let size = ByteSize(
|
let size = ByteSize(
|
||||||
fsentry
|
fsentry
|
||||||
@@ -400,7 +400,7 @@ impl Formatter {
|
|||||||
.to_string_lossy()
|
.to_string_lossy()
|
||||||
.len() as u64,
|
.len() as u64,
|
||||||
);
|
);
|
||||||
format!("{}{}{:10}", cur_str, prefix, size.to_string())
|
format!("{}{}{:10}", cur_str, prefix, size)
|
||||||
} else {
|
} else {
|
||||||
// Add to cur str, prefix and the key value
|
// Add to cur str, prefix and the key value
|
||||||
format!("{}{} ", cur_str, prefix)
|
format!("{}{} ", cur_str, prefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user