rust/library/core
Thalia Archibald 0ca1c9c1dd Count char width at most once in Formatter::pad
When both width and precision flags are specified, then the character
width is counted twice. Instead, record the character width when
truncating it to the precision, so it does not need to be recomputed.
Simplify control flow so the cases are more clear.
2025-02-27 16:41:42 -08:00
..
src Count char width at most once in Formatter::pad 2025-02-27 16:41:42 -08:00
Cargo.toml Auto merge of #137237 - cuviper:stage0, r=Mark-Simulacrum 2025-02-23 11:12:56 +00:00