From bb00f59758a0153792e62d8b93c4834398c0aed4 Mon Sep 17 00:00:00 2001 From: Sameh Abouel-saad Date: Thu, 7 Sep 2023 14:35:40 +0300 Subject: [PATCH] fix: impl size_hint for EnvIter (#154) --- src/peer/storage/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/peer/storage/mod.rs b/src/peer/storage/mod.rs index ee826f0..5f11641 100644 --- a/src/peer/storage/mod.rs +++ b/src/peer/storage/mod.rs @@ -78,7 +78,12 @@ impl Iterator for EnvIter { env }) } + + fn size_hint(&self) -> (usize, Option) { + self.destinations.size_hint() + } } + #[derive(Serialize, Deserialize, Clone, Debug)] pub struct JsonError { pub code: u32,