"Alice Ryhl" <aliceryhl@xxxxxxxxxx> writes: > On Tue, Jul 08, 2025 at 09:44:57PM +0200, Andreas Hindborg wrote: >> Add `BorrowFormatter`, a formatter that writes to an array or slice buffer. >> This formatter is backed by the existing `Formatter`. >> >> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx> > > I don't think we need a separate BorrowFormatter. We can instead add a > lifetime to Formatter and give it a safe constructor from a mutable > slice. Ah, good idea. Best regards, Andreas Hindborg