chore: fix warning in tokio-util tests (#1955)

`bytes` added a warning when using a fn that resulted in a useless
clone.
This commit is contained in:
Carl Lerche
2019-12-13 10:03:10 -08:00
committed by Sean McArthur
parent df8278acb6
commit b560df9e66
+1 -1
View File
@@ -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))
}
}