Remove size_hint from Stream impl

This commit is contained in:
Qifan Lu 2019-12-10 18:31:06 -08:00 committed by k-nasa
parent f8dd3d9816
commit 879e14c6ab

View file

@ -28,10 +28,6 @@ impl<T> Stream for Pending<T> {
fn poll_next(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Option<T>> { fn poll_next(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Option<T>> {
Poll::Pending Poll::Pending
} }
fn size_hint(&self) -> (usize, Option<usize>) {
(0, Some(0))
}
} }
impl<T> DoubleEndedStream for Pending<T> { impl<T> DoubleEndedStream for Pending<T> {