diff --git a/src/server/conn/http1.rs b/src/server/conn/http1.rs index 9699769585..f9318c8d0b 100644 --- a/src/server/conn/http1.rs +++ b/src/server/conn/http1.rs @@ -205,7 +205,7 @@ impl Future for Connection where S: HttpService, S::Error: Into>, - I: Read + Write + Unpin + 'static, + I: Read + Write + Unpin, B: Body + 'static, B::Error: Into>, { diff --git a/src/server/conn/http2.rs b/src/server/conn/http2.rs index 20333048be..6c8dfb5e7a 100644 --- a/src/server/conn/http2.rs +++ b/src/server/conn/http2.rs @@ -84,7 +84,7 @@ impl Future for Connection where S: HttpService, S::Error: Into>, - I: Read + Write + Unpin + 'static, + I: Read + Write + Unpin, B: Body + 'static, B::Error: Into>, E: Http2ServerConnExec,