From 91493f2051830fa0b1cc3276919888cf5a5eecea Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 27 Dec 2015 12:59:21 -0700 Subject: [PATCH] Implement size_hint for BlockingIter Unlike the other two iterators, this will never return None --- src/notification.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/notification.rs b/src/notification.rs index b05d7e0a..291099af 100644 --- a/src/notification.rs +++ b/src/notification.rs @@ -146,6 +146,10 @@ impl<'a> Iterator for BlockingIter<'a> { _ => unreachable!(), } } + + fn size_hint(&self) -> (usize, Option) { + (usize::max_value(), None) + } } /// An iterator over notifications which will block for a period of time if