summaryrefslogtreecommitdiffstats
path: root/tokio/tests/io_copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/io_copy.rs')
-rw-r--r--tokio/tests/io_copy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/tests/io_copy.rs b/tokio/tests/io_copy.rs
index aed6c789..9ed7995c 100644
--- a/tokio/tests/io_copy.rs
+++ b/tokio/tests/io_copy.rs
@@ -18,7 +18,7 @@ async fn copy() {
buf: &mut ReadBuf<'_>,
) -> Poll<io::Result<()>> {
if self.0 {
- buf.append(b"hello world");
+ buf.put_slice(b"hello world");
self.0 = false;
Poll::Ready(Ok(()))
} else {