diff --git a/src/io.rs b/src/io.rs index 88fb6071..6ef71ce8 100644 --- a/src/io.rs +++ b/src/io.rs @@ -434,10 +434,7 @@ mod tests { sched .schedule(async move { let buf = b"Hello World!"; - let ioslices = buf - .chunks(2) - .map(std::io::IoSlice::new) - .collect::>(); + let ioslices = buf.chunks(2).map(std::io::IoSlice::new).collect::>(); let count = tx.write_vectored(&ioslices).await.unwrap(); assert_eq!(count, 12); tx.flush().await.unwrap();