diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-11-27 20:09:22 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-11-27 20:09:22 -0600 |
commit | dfd99151bcc364b2ea947f1d4ae8a5523b92d40a (patch) | |
tree | 6ea78641b1a2351bc1ede2e066101915201e09fd /src/search | |
parent | efc8b853e67557de2d5ae23ea32df661405c07ad (diff) |
fix: fix potential bug in project entry iterator
Diffstat (limited to 'src/search')
-rw-r--r-- | src/search/entry.rs | 3 |
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()) } } |