diff --git a/src/server/conn/auto.rs b/src/server/conn/auto.rs index adb7405d..f10450e2 100644 --- a/src/server/conn/auto.rs +++ b/src/server/conn/auto.rs @@ -69,7 +69,7 @@ impl Builder { pub async fn serve_connection(&self, io: I, service: S) -> Result<()> where S: Service, Response = Response> + Send, - S::Future: Send + 'static, + S::Future: 'static, S::Error: Into>, B: Body + Send + 'static, B::Data: Send, @@ -93,7 +93,7 @@ impl Builder { pub async fn serve_connection_with_upgrades(&self, io: I, service: S) -> Result<()> where S: Service, Response = Response> + Send, - S::Future: Send + 'static, + S::Future: 'static, S::Error: Into>, B: Body + Send + 'static, B::Data: Send,