dualfroz a580c0b437 fmt: fix buffer sizes when printing durations
The ISO 8601 buffer for durations was sized for `SignedDuration::MIN`,
but the longest output is a negative duration with 16 digits of hours
and two digit minutes and seconds, e.g.,
`-PT2562047788015214H59M59.999999999S`, which is 36 bytes.

Similarly, the friendly format buffer for `std::time::Duration` didn't
account for the `+` prefix written by `Direction::ForceSign`.

Fixes #654
2026-10-13 09:55:38 -04:00
S
Description
My contributions to BurntSushi/jiff: 1 commits, 1 merged PRs
152 KiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 100%