File tree 1 file changed +8
-17
lines changed 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,7 @@ impl HttpsConnector<HttpConnector> {
45
45
}
46
46
} ;
47
47
config. ct_logs = Some ( & ct_logs:: LOGS ) ;
48
- HttpsConnector {
49
- http,
50
- tls_config : Arc :: new ( config) ,
51
- }
48
+ ( http, config) . into ( )
52
49
}
53
50
}
54
51
@@ -65,20 +62,14 @@ impl<T> fmt::Debug for HttpsConnector<T> {
65
62
}
66
63
}
67
64
68
- impl < T > From < ( T , ClientConfig ) > for HttpsConnector < T > {
69
- fn from ( args : ( T , ClientConfig ) ) -> Self {
70
- HttpsConnector {
71
- http : args. 0 ,
72
- tls_config : Arc :: new ( args. 1 ) ,
73
- }
74
- }
75
- }
76
-
77
- impl < T > From < ( T , Arc < ClientConfig > ) > for HttpsConnector < T > {
78
- fn from ( args : ( T , Arc < ClientConfig > ) ) -> Self {
65
+ impl < H , C > From < ( H , C ) > for HttpsConnector < H >
66
+ where
67
+ C : Into < Arc < ClientConfig > >
68
+ {
69
+ fn from ( ( http, cfg) : ( H , C ) ) -> Self {
79
70
HttpsConnector {
80
- http : args . 0 ,
81
- tls_config : args . 1 ,
71
+ http,
72
+ tls_config : cfg . into ( ) ,
82
73
}
83
74
}
84
75
}
You can’t perform that action at this time.
0 commit comments