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
@@ -212,7 +212,7 @@ impl Inner {
let n = cmp::min(dst.remaining(), data.len());
// Copy the data into the `dst` slice
dst.append(&data[..n]);
dst.put_slice(&data[..n]);
// Drain the data from the source
data.drain(..n);