mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
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:
committed by
Sean McArthur
parent
df8278acb6
commit
b560df9e66
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user