We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8e55c commit 4c55703Copy full SHA for 4c55703
src/storage/staging.rs
@@ -129,7 +129,7 @@ impl StorageDir {
129
let paths = dir
130
.flatten()
131
.map(|file| file.path())
132
- .filter(|file| file.extension().map_or(false, |ext| ext.eq("arrows")))
+ .filter(|file| file.extension().is_some_and(|ext| ext.eq("arrows")))
133
.sorted_by_key(|f| f.metadata().unwrap().modified().unwrap())
134
.collect();
135
@@ -199,7 +199,7 @@ impl StorageDir {
199
200
dir.flatten()
201
202
- .filter(|file| file.extension().map_or(false, |ext| ext.eq("parquet")))
+ .filter(|file| file.extension().is_some_and(|ext| ext.eq("parquet")))
203
.collect()
204
}
205
0 commit comments