diff --git a/src/proto/h2/server.rs b/src/proto/h2/server.rs index 31215fba..3e765d9e 100644 --- a/src/proto/h2/server.rs +++ b/src/proto/h2/server.rs @@ -17,6 +17,7 @@ use super::{PipeToSendStream, SendBuf}; use crate::{Body, Response}; +#[pin_project] pub(crate) struct Server where S: HttpService, @@ -27,9 +28,6 @@ where state: State, } -// TODO: fix me -impl, B: Payload, E> Unpin for Server {} - enum State where B: Payload, @@ -221,8 +219,6 @@ where impl H2Stream where - //F: Future>, - //F::Error: Into>, B: Payload, { fn new(fut: F, respond: SendResponse>) -> H2Stream {