From b560df9e669f73d4663915d9e6dd17af9ab227b9 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 13 Dec 2019 10:03:10 -0800 Subject: [PATCH] chore: fix warning in tokio-util tests (#1955) `bytes` added a warning when using a fn that resulted in a useless clone. --- tokio-util/tests/framed_read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-util/tests/framed_read.rs b/tokio-util/tests/framed_read.rs index 06caa0a4d..27bb298a7 100644 --- a/tokio-util/tests/framed_read.rs +++ b/tokio-util/tests/framed_read.rs @@ -203,7 +203,7 @@ fn huge_size() { if buf.len() < 32 * 1024 { return Ok(None); } - buf.split_to(32 * 1024); + buf.advance(32 * 1024); Ok(Some(0)) } }