io: Rename ReadBuf methods (#2945)

This changes `ReadBuf::add_filled` to `ReadBuf::advance` and
`ReadBuf::append` to `ReadBuf::put_slice`. This is just a
mechanical change.

Closes #2769
This commit is contained in:
Lucio Franco
2020-10-12 12:41:40 -04:00
committed by GitHub
parent b575082543
commit f8c91f2ead
19 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ where
Poll::Pending => return Poll::Pending,
};
let len = std::cmp::min(inner_buf.len(), buf.remaining());
buf.append(&inner_buf[..len]);
buf.put_slice(&inner_buf[..len]);
self.consume(len);
Poll::Ready(Ok(()))