From 0d146d06ec181560ad6b5aec093a278a3f5263b6 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Fri, 26 Mar 2021 23:51:50 +0000 Subject: [PATCH] fix stream lifetime --- actix-tls/src/connect/ssl/native_tls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;