Open rlee287 opened 1 month ago
Have you tried main
? IIRC there have been some improvements in this area.
The same problem occurs when I specify a Git dependency for indicatif using the default commit (branch main
, commit 5396704f8e9fe781d21a5475c8d3af292d0155fe as of time of writing).
Hmm, I'm a little skeptical that other width specifiers (either in indicatif or in the Rust formatting machinery) ever trim -- I think they mostly only expand.
Reproducer (using indicatif 0.17.8, default feature set):
The progress bar that's left after the program runs:
████████████████ | 100000/100000 | 9,631.6687/s
Despite
per_sec
specifying a width of 8 characters, the finalper_sec
display is 12 characters wide. I would have expected the formatter to trim the number of digits after the decimal point to reduce the width instead.Compressed asciinema recording of the above program running on my machine:
pb_per_sec.cast.gz