feat(body): put Stream impl for Body behind stream feature
BREAKING CHANGE: Using a `Body` as a `Stream`, and constructing one via `Body::wrap_stream`, require enabling the unstable `stream` feature.
This commit is contained in:
@@ -156,17 +156,6 @@ impl AddrIncoming {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
impl Stream for AddrIncoming {
|
||||
type Item = io::Result<AddrStream>;
|
||||
|
||||
fn poll_next(mut self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> Poll<Option<Self::Item>> {
|
||||
let result = ready!(self.poll_next_(cx));
|
||||
Poll::Ready(Some(result))
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
impl Accept for AddrIncoming {
|
||||
type Conn = AddrStream;
|
||||
type Error = io::Error;
|
||||
|
||||
Reference in New Issue
Block a user