mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix iterator
This commit is contained in:
@@ -538,7 +538,7 @@ impl<'a> Iterator for BlobDirIter<'a> {
|
|||||||
type Item = BlobObject<'a>;
|
type Item = BlobObject<'a>;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
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
|
// In theory this can error but we'd have corrupted filenames in the blobdir, so
|
||||||
// silently skipping them is fine.
|
// silently skipping them is fine.
|
||||||
match BlobObject::from_path(self.context, path) {
|
match BlobObject::from_path(self.context, path) {
|
||||||
|
|||||||
Reference in New Issue
Block a user