single-threaded
This commit is contained in:
parent
10c34c7827
commit
92660a4c27
11
src/main.rs
11
src/main.rs
@ -33,11 +33,12 @@ fn main() -> eyre::Result<()> {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|e| e.ok())
|
.filter_map(|e| e.ok())
|
||||||
{
|
{
|
||||||
let metadata = entry.metadata()?;
|
if let Ok(metadata) = entry.metadata() {
|
||||||
if metadata.is_dir() {
|
if metadata.is_dir() {
|
||||||
let name = entry.file_name().to_string_lossy();
|
let name = entry.file_name().to_string_lossy();
|
||||||
if pattern.is_match(&name) {
|
if pattern.is_match(&name) {
|
||||||
projects.push(entry.into_path())
|
projects.push(entry.into_path())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user