Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Jun 5, 2024
1 parent ecd7402 commit b6c9fec
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions bench-vortex/src/taxi_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ pub fn taxi_data_vortex() -> PathBuf {
struct StdFile(std::fs::File);

impl VortexWrite for StdFile {
fn write_all<B: IoBuf>(&mut self, buffer: B) -> impl Future<Output = std::io::Result<B>> {
async {
self.0.write_all(buffer.as_slice())?;
Ok(buffer)
}
async fn write_all<B: IoBuf>(&mut self, buffer: B) -> std::io::Result<B> {
self.0.write_all(buffer.as_slice())?;
Ok(buffer)
}

fn flush(&mut self) -> impl Future<Output = std::io::Result<()>> {
async {
self.0.flush()?;
Ok(())
}
async fn flush(&mut self) -> std::io::Result<()> {
self.0.flush()?;
Ok(())
}

fn shutdown(&mut self) -> impl Future<Output = std::io::Result<()>> {
Expand Down

0 comments on commit b6c9fec

Please sign in to comment.