From b6c9fecf8a52526d3661d826b66c778083a0b389 Mon Sep 17 00:00:00 2001 From: Andrew Duffy Date: Wed, 5 Jun 2024 18:54:57 +0100 Subject: [PATCH] fix clippy --- bench-vortex/src/taxi_data.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/bench-vortex/src/taxi_data.rs b/bench-vortex/src/taxi_data.rs index 67e519b307..10a1e0a0f5 100644 --- a/bench-vortex/src/taxi_data.rs +++ b/bench-vortex/src/taxi_data.rs @@ -53,18 +53,14 @@ pub fn taxi_data_vortex() -> PathBuf { struct StdFile(std::fs::File); impl VortexWrite for StdFile { - fn write_all(&mut self, buffer: B) -> impl Future> { - async { - self.0.write_all(buffer.as_slice())?; - Ok(buffer) - } + async fn write_all(&mut self, buffer: B) -> std::io::Result { + self.0.write_all(buffer.as_slice())?; + Ok(buffer) } - fn flush(&mut self) -> impl Future> { - async { - self.0.flush()?; - Ok(()) - } + async fn flush(&mut self) -> std::io::Result<()> { + self.0.flush()?; + Ok(()) } fn shutdown(&mut self) -> impl Future> {