fix iterator

This commit is contained in:
Floris Bruynooghe
2023-03-02 21:48:14 +01:00
parent d108f9b3e3
commit da85c2412e

View File

@@ -538,7 +538,7 @@ impl<'a> Iterator for BlobDirIter<'a> {
type Item = BlobObject<'a>;
fn next(&mut self) -> Option<Self::Item> {
for path in self.iter.as_ref() {
for path in self.iter.by_ref() {
// In theory this can error but we'd have corrupted filenames in the blobdir, so
// silently skipping them is fine.
match BlobObject::from_path(self.context, path) {