forked from mirror/async-std
Remove size_hint from Stream impl
This commit is contained in:
parent
f8dd3d9816
commit
879e14c6ab
1 changed files with 0 additions and 4 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue