From 7198d715d056b05b490e4c907b609a3da8f650ae Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Mon, 27 Dec 2021 06:52:00 +0100 Subject: [PATCH] fmt --- src/io.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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();