mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Minor code neatening
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ pub fn format_string(dir_name: &str, is_biggest: bool, size: &str, indentation:
|
||||
)
|
||||
}
|
||||
|
||||
fn human_readable_number(size: u64) -> (String) {
|
||||
fn human_readable_number(size: u64) -> String {
|
||||
for (i, u) in UNITS.iter().enumerate() {
|
||||
let marker = 1024u64.pow((UNITS.len() - i) as u32);
|
||||
if size >= marker {
|
||||
|
||||
Reference in New Issue
Block a user