fix build

This commit is contained in:
fakeshadow 2021-02-17 23:58:14 -08:00
parent 757a366ab5
commit 7cceb21411
1 changed files with 12 additions and 1 deletions

View File

@ -361,7 +361,6 @@ mod connect_impl {
use super::*;
use crate::client::connection::IoConnection;
#[derive(Clone)]
pub(crate) struct InnerConnector<T, Io>
where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
@ -370,6 +369,18 @@ mod connect_impl {
pub(crate) tcp_pool: ConnectionPool<T, Io>,
}
impl<T, Io> Clone for InnerConnector<T, Io>
where
Io: AsyncRead + AsyncWrite + Unpin + 'static,
T: Service<Connect, Response = (Io, Protocol), Error = ConnectError> + 'static,
{
fn clone(&self) -> Self {
InnerConnector {
tcp_pool: self.tcp_pool.clone(),
}
}
}
impl<T, Io> Service<Connect> for InnerConnector<T, Io>
where
Io: AsyncRead + AsyncWrite + Unpin + 'static,