]> git.lizzy.rs Git - rust.git/commit
auto merge of #18885 : thestinger/rust/writer, r=aturon
authorbors <bors@rust-lang.org>
Tue, 18 Nov 2014 08:36:39 +0000 (08:36 +0000)
committerbors <bors@rust-lang.org>
Tue, 18 Nov 2014 08:36:39 +0000 (08:36 +0000)
commitfcb1523241cd682abc9a0622efe9877fbac53231
tree4b7d4cbdd13006e15f2780a0dabb8f338ee7567f
parentf637f1c5a27b2d8023342163c6ac5c394d91c1fe
parent85c2c2e38ce7c606fac1e9c8fa9d2ab71b35c8c8
auto merge of #18885 : thestinger/rust/writer, r=aturon

The trait has an obvious, sensible implementation directly on vectors so
the MemWriter wrapper is unnecessary. This will halt the trend towards
providing all of the vector methods on MemWriter along with eliminating
the noise caused by conversions between the two types. It also provides
the useful default Writer methods on Vec<u8>.

After the type is removed and code has been migrated, it would make
sense to add a new implementation of MemWriter with seeking support. The
simple use cases can be covered with vectors alone, and ones with the
need for seeks can use a new MemWriter implementation.
src/libtest/stats.rs