~matthiasbeyer/maildir

509ff0f58d49b2b6246fd8bfe6db5aff40f70fad — Matthias Beyer 6 months ago beb51fe
Impl Iterator::size_hint() for MailEntries

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 4 insertions(+), 0 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +4 -0
@@ 246,6 246,10 @@ impl Iterator for MailEntries {
            };
        }
    }

    fn size_hint(&self) -> (usize, Option<usize>) {
        self.readdir.as_ref().map(|rd| rd.size_hint()).unwrap_or((0, None))
    }
}

#[derive(Debug)]