From 322e6648f9776377c806d2258d910ec174457ce3 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Sat, 29 Jan 2022 00:01:33 +0000 Subject: [PATCH] Clippy --- parquet/src/arrow/async_reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parquet/src/arrow/async_reader.rs b/parquet/src/arrow/async_reader.rs index c9040bf12b93..03d231f41b0f 100644 --- a/parquet/src/arrow/async_reader.rs +++ b/parquet/src/arrow/async_reader.rs @@ -112,7 +112,7 @@ impl ParquetRecordBatchStreamBuilder { /// Only read data from the provided column indexes pub fn with_projection(self, projection: Vec) -> Self { Self { - projection: Some(projection.into()), + projection: Some(projection), ..self } } @@ -339,7 +339,7 @@ async fn read_footer( let mut buf = [0_u8; 8]; input.read_exact(&mut buf).await?; - if &buf[4..] != PARQUET_MAGIC { + if buf[4..] != PARQUET_MAGIC { return Err(general_err!("Invalid Parquet file. Corrupt footer")); }