From da85c2412e56af69a85f5e0e1ef00fcd2873b6b0 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 2 Mar 2023 21:48:14 +0100 Subject: [PATCH] fix iterator --- src/blob.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blob.rs b/src/blob.rs index ca88217ea..cdc8ffc94 100644 --- a/src/blob.rs +++ b/src/blob.rs @@ -538,7 +538,7 @@ impl<'a> Iterator for BlobDirIter<'a> { type Item = BlobObject<'a>; fn next(&mut self) -> Option { - 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) {