Skip to content

Commit

Permalink
Fix overflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHDev committed Apr 10, 2021
1 parent 26fb2b2 commit b7d0fbd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sizeplz"
version = "0.1.0"
version = "0.1.1"
authors = ["Sam Huddart <[email protected]>"]
edition = "2018"
description = "A tool to get the size of folders within a directory"
Expand Down
2 changes: 1 addition & 1 deletion src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn format_record(mut record: Record, indent: usize, last: bool, pad: &usize, for
}

let form = format.autosize(&record.size);
println!("{}{}{} {: >4} {}", ind, record.name, " ".repeat(pad - record.name.len()), form.string(record.size, round), form.suffix());
println!("{0}{1: <2$} {3: >4} {4}", ind, record.name, pad, form.string(record.size, round), form.suffix());

sort.sort(&mut record.children);
if *invert { record.children.reverse(); }
Expand Down

0 comments on commit b7d0fbd

Please sign in to comment.