Skip to content

Commit a11f5d4

Browse files
committed
fix clippy.
1 parent 213d20d commit a11f5d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datafusion/core/src/datasource/listing/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub fn split_files(
141141
let chunk_size = (partitioned_files.len() + n - 1) / n;
142142
partitioned_files
143143
.chunks_mut(chunk_size)
144-
.map(|c| c.iter_mut().map(|p| mem::take(p)).collect())
144+
.map(|c| c.iter_mut().map(mem::take).collect())
145145
.collect()
146146
}
147147

datafusion/core/src/datasource/listing/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ impl ListingTable {
10081008
part_file: &PartitionedFile,
10091009
) -> Result<Arc<Statistics>> {
10101010
let statistics_cache = self.collected_statistics.clone();
1011-
return match statistics_cache
1011+
match statistics_cache
10121012
.get_with_extra(&part_file.object_meta.location, &part_file.object_meta)
10131013
{
10141014
Some(statistics) => Ok(statistics.clone()),

0 commit comments

Comments
 (0)