mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
cc9da0b2ce
Most functions for format builders set `self.result` after writing strings. This ensures that any further writing fails immediately rather than trying to write again. A few `.finish()` methods did have this same behavior, so make it consistent here.