mirror of https://github.com/fafhrd91/actix-web
fix build
This commit is contained in:
parent
757a366ab5
commit
7cceb21411
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue