mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
fix iterator
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user