diff options
Diffstat (limited to 'tokio-test/src/io.rs')
-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); |