Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SizeFormatter doesn't respect padding options #28

Open
lnicola opened this issue Dec 9, 2022 · 0 comments
Open

SizeFormatter doesn't respect padding options #28

lnicola opened this issue Dec 9, 2022 · 0 comments

Comments

@lnicola
Copy link

lnicola commented Dec 9, 2022

let size = 1_000_000usize;
println!("{:>15}", humansize::format_size(size, humansize::WINDOWS));
println!("{:>15}", humansize::SizeFormatter::new(size, humansize::WINDOWS));

// =>
//       976.56 kB
// 976.56 kB
@lnicola lnicola changed the title SizeFormatter doesn't respect format options SizeFormatter doesn't respect padding options Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant