1- use std:: marker:: PhantomData ;
2-
31use super :: { Connector , Transport } ;
42
53/// Chain of up to 8 connectors
64///
75/// Can be created manually from a tuple of connectors through `ChainedConnector::new`
86#[ derive( Debug ) ]
9- pub struct ChainedConnector < In , Connectors > ( Connectors , PhantomData < In > ) ;
7+ pub struct ChainedConnector < Connectors > ( Connectors ) ;
108
11- impl < In , Connectors > ChainedConnector < In , Connectors > {
9+ impl < Connectors > ChainedConnector < Connectors > {
1210 /// Create a new chained connector that chains a tuple of connectors
1311 ///
1412 /// ```rust
1513 /// # use ureq::unversioned::transport::{ChainedConnector, SocsConnector, TcpConnector, RustlsConnector, ConnectProxyConnector};
1614 /// let connector: ChainedConnector<(), (SocsConnector, TcpConnector, RustlsConnector, ConnectProxyConnector)> = ChainedConnector::new(SocsConnector::default(), TcpConnector::default(), RustlsConnector::default(), ConnectProxyConnector::default());
1715 /// ```
1816 pub fn new ( connectors : Connectors ) -> Self {
19- Self ( connectors, PhantomData )
17+ Self ( connectors)
2018 }
2119}
2220
2321macro_rules! impl_chained_connectors {
2422 ( ( $first_ty: ident, $first_name: ident) ; $( ( $ty: ident, $name: ident, $prev_ty: ident) ) ,* ; ( $final_ty: ident, $final_name: ident, $pre_final_ty: ident) ) => {
25- impl <In , $first_ty, $( $ty, ) * $final_ty> Connector <In > for ChainedConnector <In , ( $first_ty, $( $ty, ) * $final_ty) >
23+ impl <In , $first_ty, $( $ty, ) * $final_ty> Connector <In > for ChainedConnector <( $first_ty, $( $ty, ) * $final_ty) >
2624 where
2725 In : Transport ,
2826 $first_ty: Connector <In >,
@@ -39,7 +37,7 @@ macro_rules! impl_chained_connectors {
3937 ref $first_name,
4038 $( ref $name, ) *
4139 ref $final_name,
42- ) , _ ) = self ;
40+ ) ) = self ;
4341
4442 let out = $first_name. connect( details, chained) ?;
4543 $(
0 commit comments