@@ -193,7 +193,7 @@ impl PruningStatistics for PartitionPruningStatistics {
193193 fn min_values ( & self , column : & Column ) -> Option < ArrayRef > {
194194 let index = self . partition_schema . index_of ( column. name ( ) ) . ok ( ) ?;
195195 let partition_values = self . partition_values . get ( index) ?;
196- match ScalarValue :: iter_to_array ( partition_values. iter ( ) . map ( |v| v . clone ( ) ) ) {
196+ match ScalarValue :: iter_to_array ( partition_values. iter ( ) . cloned ( ) ) {
197197 Ok ( array) => Some ( array) ,
198198 Err ( _) => {
199199 log:: warn!(
@@ -259,7 +259,7 @@ impl PrunableStatistics {
259259 /// The `schema` is the schema of the data in the containers and should apply to all files.
260260 pub fn new ( statistics : Vec < Arc < Statistics > > , schema : SchemaRef ) -> Self {
261261 Self {
262- statistics : statistics ,
262+ statistics,
263263 schema,
264264 }
265265 }
@@ -271,7 +271,7 @@ impl PruningStatistics for PrunableStatistics {
271271 if self . statistics . iter ( ) . any ( |s| {
272272 s. column_statistics
273273 . get ( index)
274- . map_or ( false , |stat| stat. min_value . is_exact ( ) . unwrap_or ( false ) )
274+ . is_some_and ( |stat| stat. min_value . is_exact ( ) . unwrap_or ( false ) )
275275 } ) {
276276 match ScalarValue :: iter_to_array ( self . statistics . iter ( ) . map ( |s| {
277277 s. column_statistics
@@ -304,7 +304,7 @@ impl PruningStatistics for PrunableStatistics {
304304 if self . statistics . iter ( ) . any ( |s| {
305305 s. column_statistics
306306 . get ( index)
307- . map_or ( false , |stat| stat. max_value . is_exact ( ) . unwrap_or ( false ) )
307+ . is_some_and ( |stat| stat. max_value . is_exact ( ) . unwrap_or ( false ) )
308308 } ) {
309309 match ScalarValue :: iter_to_array ( self . statistics . iter ( ) . map ( |s| {
310310 s. column_statistics
@@ -341,7 +341,7 @@ impl PruningStatistics for PrunableStatistics {
341341 if self . statistics . iter ( ) . any ( |s| {
342342 s. column_statistics
343343 . get ( index)
344- . map_or ( false , |stat| stat. null_count . is_exact ( ) . unwrap_or ( false ) )
344+ . is_some_and ( |stat| stat. null_count . is_exact ( ) . unwrap_or ( false ) )
345345 } ) {
346346 Some ( Arc :: new (
347347 self . statistics
0 commit comments