single-threaded

This commit is contained in:
2022-10-14 22:48:28 +02:00
parent 10c34c7827
commit 92660a4c27

View File

@@ -33,11 +33,12 @@ fn main() -> eyre::Result<()> {
.into_iter()
.filter_map(|e| e.ok())
{
let metadata = entry.metadata()?;
if metadata.is_dir() {
let name = entry.file_name().to_string_lossy();
if pattern.is_match(&name) {
projects.push(entry.into_path())
if let Ok(metadata) = entry.metadata() {
if metadata.is_dir() {
let name = entry.file_name().to_string_lossy();
if pattern.is_match(&name) {
projects.push(entry.into_path())
}
}
}
}