Skip to content

Commit f5451c2

Browse files
committed
uncomment generic Stream for Stream impl, which restores tests but breaks compilation
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent d9a6b39 commit f5451c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: src/stream/stream/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,10 @@ pub trait Stream {
758758
}
759759
}
760760

761-
// impl<T: futures_core::stream::Stream + ?Sized> Stream for T {
762-
// type Item = <Self as futures_core::stream::Stream>::Item;
761+
impl<T: futures_core::stream::Stream + ?Sized> Stream for T {
762+
type Item = <Self as futures_core::stream::Stream>::Item;
763763

764-
// fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
765-
// futures_core::stream::Stream::poll_next(self, cx)
766-
// }
767-
// }
764+
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
765+
futures_core::stream::Stream::poll_next(self, cx)
766+
}
767+
}

0 commit comments

Comments
 (0)