]> git.lizzy.rs Git - rust.git/commit
Auto merge of #85815 - YuhanLiin:buf-read-data-left, r=m-ou-se
authorbors <bors@rust-lang.org>
Fri, 18 Jun 2021 20:11:51 +0000 (20:11 +0000)
committerbors <bors@rust-lang.org>
Fri, 18 Jun 2021 20:11:51 +0000 (20:11 +0000)
commitce1d5611a28468663e275078649e7ca6eef735a8
tree941809ffb25c8d908adee20f61895a44bb28583c
parent88ba8ad730a124f7e1d4f1bd17f2b14cb18eed3c
parent99939c44c3fabbd4bfcb87839072ba563ce12d9b
Auto merge of #85815 - YuhanLiin:buf-read-data-left, r=m-ou-se

Add has_data_left() to BufRead

This is a continuation of #40747 and also addresses #40745. The problem with the previous PR was that it had "eof" in its method name. This PR uses a more descriptive method name, but I'm open to changing it.
library/std/src/io/mod.rs
library/std/src/io/tests.rs