]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #32855 - troplin:take-bufread-fix, r=alexcrichton
authorSteve Klabnik <steve@steveklabnik.com>
Thu, 14 Apr 2016 18:49:09 +0000 (14:49 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Thu, 14 Apr 2016 18:49:09 +0000 (14:49 -0400)
Don't read past limit for in BufRead instance of Take

Similar to `Read::read`, `BufRead::fill_buf` impl of `Take` should not call `inner.fill_buf` if the limit is already reached.

1  2 
src/libstd/io/mod.rs

Simple merge