As discussed in https://github.com/pubgrub-rs/pubgrub/pull/158#discussion_r1411102813 and https://github.com/zanieb/pubgrub/pull/10#issuecomment-183425750, using a writer is probably cleaner and more performant than buffering formatted strings.
As discussed in #158 (comment) and astral-sh#10 (comment), using a writer is probably cleaner and more performant than buffering formatted strings.