Track crates.io deps

This commit is contained in:
Tim Kuehn
2016-09-14 10:11:28 -07:00
parent 987e445935
commit 8c0181633d
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ trait MutBufExt: MutBuf + Sized {
fn take(&mut self) -> Self::Inner;
fn try_read<R: TryRead>(&mut self, stream: &mut R) -> io::Result<NextReadAction<Self::Inner>> {
while let Some(bytes_read) = stream.try_read_buf(self)? {
while let Async::Ready(bytes_read) = stream.try_read_buf(self)? {
debug!("Reader: read {} bytes, {} remaining.",
bytes_read,
self.remaining());

View File

@@ -49,7 +49,7 @@ trait BufExt: Buf + Sized {
/// Writes data to stream. Returns Ok(true) if all data has been written or Ok(false) if
/// there's still data to write.
fn try_write<W: TryWrite>(&mut self, stream: &mut W) -> io::Result<NextWriteAction> {
while let Some(bytes_written) = stream.try_write_buf(self)? {
while let Async::Ready(bytes_written) = stream.try_write_buf(self)? {
debug!("Writer: wrote {} bytes; {} remaining.",
bytes_written,
self.remaining());