From 10cda4beff0ece551a634c81fc5f2f7f7177fa1f Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 22 Oct 2019 18:33:05 -0700 Subject: [PATCH] refactor(http2): replace server Unpin impl with pin_project --- src/proto/h2/server.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {