Skip to content

Commit 4c55703

Browse files
author
Devdutt Shenoi
committed
ci: clippy suggestions
1 parent 5a8e55c commit 4c55703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storage/staging.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl StorageDir {
129129
let paths = dir
130130
.flatten()
131131
.map(|file| file.path())
132-
.filter(|file| file.extension().map_or(false, |ext| ext.eq("arrows")))
132+
.filter(|file| file.extension().is_some_and(|ext| ext.eq("arrows")))
133133
.sorted_by_key(|f| f.metadata().unwrap().modified().unwrap())
134134
.collect();
135135

@@ -199,7 +199,7 @@ impl StorageDir {
199199

200200
dir.flatten()
201201
.map(|file| file.path())
202-
.filter(|file| file.extension().map_or(false, |ext| ext.eq("parquet")))
202+
.filter(|file| file.extension().is_some_and(|ext| ext.eq("parquet")))
203203
.collect()
204204
}
205205

0 commit comments

Comments
 (0)