From c321dc1367523f843c31488eedb3d3bedee249a0 Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Wed, 14 Aug 2024 14:29:14 +0200 Subject: [PATCH] chore fmt and clippy --- crates/polars-io/src/parquet/read/mmap.rs | 6 +++--- crates/polars-parquet/src/arrow/read/row_group.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/polars-io/src/parquet/read/mmap.rs b/crates/polars-io/src/parquet/read/mmap.rs index 1b6609237449..4489247e1a6f 100644 --- a/crates/polars-io/src/parquet/read/mmap.rs +++ b/crates/polars-io/src/parquet/read/mmap.rs @@ -6,8 +6,8 @@ use bytes::Bytes; use polars_core::datatypes::PlHashMap; use polars_error::PolarsResult; use polars_parquet::read::{ - column_iter_to_arrays, get_field_columns, BasicDecompressor, ColumnChunkMetaData, - Filter, PageReader, + column_iter_to_arrays, get_field_columns, BasicDecompressor, ColumnChunkMetaData, Filter, + PageReader, }; use polars_utils::mmap::{MemReader, MemSlice}; @@ -63,7 +63,7 @@ fn _mmap_single_column<'a>( // similar to arrow2 serializer, except this accepts a slice instead of a vec. // this allows us to memory map -pub(super) fn to_deserializer<'a>( +pub(super) fn to_deserializer( columns: Vec<(&ColumnChunkMetaData, MemSlice)>, field: Field, filter: Option, diff --git a/crates/polars-parquet/src/arrow/read/row_group.rs b/crates/polars-parquet/src/arrow/read/row_group.rs index e8707ed8491d..81be2243669a 100644 --- a/crates/polars-parquet/src/arrow/read/row_group.rs +++ b/crates/polars-parquet/src/arrow/read/row_group.rs @@ -160,7 +160,7 @@ pub fn to_deserializer( /// This operation is single-threaded. For readers with stronger invariants /// (e.g. implement [`Clone`]) you can use [`read_columns`] to read multiple columns at once /// and convert them to [`ArrayIter`] via [`to_deserializer`]. -pub fn read_columns_many<'a, R: Read + Seek>( +pub fn read_columns_many( reader: &mut R, row_group: &RowGroupMetaData, fields: Vec,