From 937f2ad75e4c9d68485999e31bcf56543bdbeae7 Mon Sep 17 00:00:00 2001
From: Samuel Colvin <s@muelcolvin.com>
Date: Fri, 23 Aug 2024 20:47:35 +0100
Subject: [PATCH] fix clippy

---
 parquet/src/file/page_index/index.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/parquet/src/file/page_index/index.rs b/parquet/src/file/page_index/index.rs
index fb23847b273f..0aadcde4075d 100644
--- a/parquet/src/file/page_index/index.rs
+++ b/parquet/src/file/page_index/index.rs
@@ -191,7 +191,7 @@ impl<T: ParquetValueType> NativeIndex<T> {
         let indexes = index
             .min_values
             .iter()
-            .zip(index.max_values.into_iter())
+            .zip(index.max_values.iter())
             .zip(index.null_pages.into_iter())
             .zip(null_counts.into_iter())
             .zip(rep_hists.into_iter())
@@ -205,8 +205,8 @@ impl<T: ParquetValueType> NativeIndex<T> {
                         (None, None)
                     } else {
                         (
-                            Some(T::try_from_le_slice(&min)?),
-                            Some(T::try_from_le_slice(&max)?),
+                            Some(T::try_from_le_slice(min)?),
+                            Some(T::try_from_le_slice(max)?),
                         )
                     };
                     Ok(PageIndex {