diff --git a/actix-http/src/client/connector.rs b/actix-http/src/client/connector.rs index 49311b349..65536f257 100644 --- a/actix-http/src/client/connector.rs +++ b/actix-http/src/client/connector.rs @@ -361,7 +361,6 @@ mod connect_impl { use super::*; use crate::client::connection::IoConnection; - #[derive(Clone)] pub(crate) struct InnerConnector where Io: AsyncRead + AsyncWrite + Unpin + 'static, @@ -370,6 +369,18 @@ mod connect_impl { pub(crate) tcp_pool: ConnectionPool, } + impl Clone for InnerConnector + where + Io: AsyncRead + AsyncWrite + Unpin + 'static, + T: Service + 'static, + { + fn clone(&self) -> Self { + InnerConnector { + tcp_pool: self.tcp_pool.clone(), + } + } + } + impl Service for InnerConnector where Io: AsyncRead + AsyncWrite + Unpin + 'static,