summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-11-27 20:09:22 -0600
committerToby Vincent <tobyv13@gmail.com>2022-11-27 20:09:22 -0600
commitdfd99151bcc364b2ea947f1d4ae8a5523b92d40a (patch)
tree6ea78641b1a2351bc1ede2e066101915201e09fd
parentefc8b853e67557de2d5ae23ea32df661405c07ad (diff)
fix: fix potential bug in project entry iterator
-rw-r--r--src/search/entry.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search/entry.rs b/src/search/entry.rs
index 776886b..1d885c8 100644
--- a/src/search/entry.rs
+++ b/src/search/entry.rs
@@ -47,8 +47,9 @@ impl Iterator for Entry {
Ok(dir_entry) => self.parse_dir_entry(dir_entry),
Err(err) => {
error!(%err, "Ignoring errored path");
- self.next()
+ None
}
}
+ .or_else(|| self.next())
}
}