mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
simplify client::connection::Connection trait (#1998)
This commit is contained in:
@ -52,7 +52,6 @@ impl ClientBuilder {
|
||||
where
|
||||
T: Service<HttpConnect, Error = ConnectError> + 'static,
|
||||
T::Response: Connection,
|
||||
<T::Response as Connection>::Future: 'static,
|
||||
T::Future: 'static,
|
||||
{
|
||||
self.connector = Some(Box::new(ConnectorWrapper(connector)));
|
||||
|
@ -41,8 +41,6 @@ where
|
||||
T: Service<ClientConnect, Error = ConnectError>,
|
||||
T::Response: Connection,
|
||||
<T::Response as Connection>::Io: 'static,
|
||||
<T::Response as Connection>::Future: 'static,
|
||||
<T::Response as Connection>::TunnelFuture: 'static,
|
||||
T::Future: 'static,
|
||||
{
|
||||
fn send_request(
|
||||
|
Reference in New Issue
Block a user