pubgrub-rs / pubgrub

PubGrub version solving algorithm implemented in Rust
https://pubgrub-rs.github.io/pubgrub/pubgrub/
Mozilla Public License 2.0
337 stars 30 forks source link

Update reporter implementations to use `&mut Write` instead of buffering strings #161

Open zanieb opened 7 months ago

zanieb commented 7 months ago

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.