2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-01 07:39:40 +00:00

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>> {
Poll::Pending
}
fn size_hint(&self) -> (usize, Option<usize>) {
(0, Some(0))
}
}
impl<T> DoubleEndedStream for Pending<T> {