diff --git a/src/server/conn.rs b/src/server/conn.rs index 523b0d44..a8a9bcc4 100644 --- a/src/server/conn.rs +++ b/src/server/conn.rs @@ -902,7 +902,7 @@ pub(crate) mod spawn_all { impl Watcher for NoopWatcher where I: AsyncRead + AsyncWrite + Unpin + Send + 'static, - S: HttpService + 'static, + S: HttpService, ::Data: Unpin, E: H2Exec, { @@ -1017,7 +1017,7 @@ mod upgrades { impl UpgradeableConnection where - S: HttpService,// + 'static, + S: HttpService, S::Error: Into>, I: AsyncRead + AsyncWrite + Unpin, B: Payload + 'static, @@ -1035,7 +1035,7 @@ mod upgrades { impl Future for UpgradeableConnection where - S: HttpService + 'static, + S: HttpService, S::Error: Into>, I: AsyncRead + AsyncWrite + Unpin + Send + 'static, B: Payload + 'static, diff --git a/src/server/mod.rs b/src/server/mod.rs index fb11b686..bb62f97b 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -149,7 +149,6 @@ where IO: AsyncRead + AsyncWrite + Unpin + Send + 'static, S: MakeServiceRef, S::Error: Into>, - S::Service: 'static, B: Payload, B::Data: Unpin, E: H2Exec<>::Future, B>, @@ -206,7 +205,6 @@ where IO: AsyncRead + AsyncWrite + Unpin + Send + 'static, S: MakeServiceRef, S::Error: Into>, - S::Service: 'static, B: Payload, B::Data: Unpin, E: H2Exec<>::Future, B>, @@ -392,7 +390,6 @@ impl Builder { I::Conn: AsyncRead + AsyncWrite + Unpin + Send + 'static, S: MakeServiceRef, S::Error: Into>, - S::Service: 'static, B: Payload, B::Data: Unpin, E: NewSvcExec, diff --git a/src/server/shutdown.rs b/src/server/shutdown.rs index 703e7184..730055ec 100644 --- a/src/server/shutdown.rs +++ b/src/server/shutdown.rs @@ -50,7 +50,6 @@ where IE: Into>, IO: AsyncRead + AsyncWrite + Unpin + Send + 'static, S: MakeServiceRef, - S::Service: 'static, S::Error: Into>, B: Payload, B::Data: Unpin, @@ -106,7 +105,7 @@ pub struct GracefulWatcher(Watch); impl Watcher for GracefulWatcher where I: AsyncRead + AsyncWrite + Unpin + Send + 'static, - S: HttpService + 'static, + S: HttpService, ::Data: Unpin, E: H2Exec, {