Remove Unpin bound in impl Stream for T

This commit is contained in:
Wonwoo Choi 2019-09-16 18:25:46 +09:00
parent a4d42e772b
commit d6ffdbce8d

View file

@ -547,7 +547,7 @@ pub trait Stream {
}
}
impl<T: futures_core::stream::Stream + Unpin + ?Sized> Stream for T {
impl<T: futures_core::stream::Stream + ?Sized> Stream for T {
type Item = <Self as futures_core::stream::Stream>::Item;
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {