]> git.lizzy.rs Git - rust.git/commit
std::io::util cleanup + fixes
authorSteven Fackler <sfackler@gmail.com>
Fri, 15 Aug 2014 06:06:30 +0000 (23:06 -0700)
committerSteven Fackler <sfackler@gmail.com>
Fri, 15 Aug 2014 06:14:56 +0000 (23:14 -0700)
commit89a0060997479de770be0a63731423e2a305beda
treec5a6b095ef85bc0004d069c82b9a35bdcf01d700
parentbf0a925dcde7a2c66df4e05661a9b1d1472435ab
std::io::util cleanup + fixes

* Fix `LimitReader`'s `Buffer::consume` impl to avoid limit underflow
* Make `MultiWriter` fail fast instead of always running through each
    `Writer`. This may or may not be what we want, but it at least
    doesn't throw any errors encountered in later `Writer`s into oblivion.
* Prevent `IterReader`'s `Reader::read` impl from returning EOF if given
    an empty buffer.

[breaking-change]
src/libstd/io/util.rs