Implement size_hint for BlockingIter

Unlike the other two iterators, this will never return None
This commit is contained in:
Steven Fackler
2015-12-27 12:59:21 -07:00
parent 740953aa65
commit 91493f2051

View File

@@ -146,6 +146,10 @@ impl<'a> Iterator for BlockingIter<'a> {
_ => unreachable!(),
}
}
fn size_hint(&self) -> (usize, Option<usize>) {
(usize::max_value(), None)
}
}
/// An iterator over notifications which will block for a period of time if