Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Jan 29, 2022
1 parent db9bc8d commit 322e664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parquet/src/arrow/async_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl<T: AsyncRead + AsyncSeek + Unpin> ParquetRecordBatchStreamBuilder<T> {
/// Only read data from the provided column indexes
pub fn with_projection(self, projection: Vec<usize>) -> Self {
Self {
projection: Some(projection.into()),
projection: Some(projection),
..self
}
}
Expand Down Expand Up @@ -339,7 +339,7 @@ async fn read_footer<T: AsyncRead + AsyncSeek + Unpin>(
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"));
}

Expand Down

0 comments on commit 322e664

Please sign in to comment.