diff --git a/actix-tls/src/connect/ssl/native_tls.rs b/actix-tls/src/connect/ssl/native_tls.rs index c16e9dc9..de08ea2a 100644 --- a/actix-tls/src/connect/ssl/native_tls.rs +++ b/actix-tls/src/connect/ssl/native_tls.rs @@ -39,7 +39,7 @@ impl Clone for NativetlsConnector { impl ServiceFactory> for NativetlsConnector where - U: ActixStream, + U: ActixStream + 'static, { type Response = Connection>; type Error = io::Error; @@ -59,7 +59,7 @@ where impl Service> for NativetlsConnector where T: Address, - U: ActixStream, + U: ActixStream + 'static, { type Response = Connection>; type Error = io::Error;