Skip to content

Commit 136eb5f

Browse files
committed
fix clippy.
1 parent ba92c00 commit 136eb5f

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
@@ -1015,7 +1015,7 @@ impl ListingTable {
10151015
part_file: &PartitionedFile,
10161016
) -> Result<Arc<Statistics>> {
10171017
let statistics_cache = self.collected_statistics.clone();
1018-
return match statistics_cache
1018+
match statistics_cache
10191019
.get_with_extra(&part_file.object_meta.location, &part_file.object_meta)
10201020
{
10211021
Some(statistics) => Ok(statistics.clone()),

0 commit comments

Comments
 (0)