summaryrefslogtreecommitdiffstats
path: root/tokio-util/tests/framed_read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-util/tests/framed_read.rs')
-rw-r--r--tokio-util/tests/framed_read.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-util/tests/framed_read.rs b/tokio-util/tests/framed_read.rs
index 52c30ef9..0ce8118e 100644
--- a/tokio-util/tests/framed_read.rs
+++ b/tokio-util/tests/framed_read.rs
@@ -271,7 +271,7 @@ impl AsyncRead for Mock {
match self.calls.pop_front() {
Some(Ok(data)) => {
debug_assert!(buf.remaining() >= data.len());
- buf.append(&data);
+ buf.put_slice(&data);
Ready(Ok(()))
}
Some(Err(ref e)) if e.kind() == WouldBlock => Pending,