diff options
author | Lucio Franco <luciofranco14@gmail.com> | 2020-10-12 12:41:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 12:41:40 -0400 |
commit | f8c91f2ead24ed6e268a820405c329032dd30da6 (patch) | |
tree | 49df96ec1434bd5f253f1cec9422cadb1ca1be6a /tokio-test | |
parent | b5750825431afe6fe227a6fcf30a593b51ceff1b (diff) |
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
Diffstat (limited to 'tokio-test')
-rw-r--r-- | tokio-test/src/io.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-test/src/io.rs b/tokio-test/src/io.rs index 7cfad2ec..b68929a8 100644 --- a/tokio-test/src/io.rs +++ b/tokio-test/src/io.rs @@ -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); |