File tree Expand file tree Collapse file tree
crates/truefix-okx-client/src/transport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,7 @@ impl WebSocketTransport {
3434 return Self :: connect ( endpoint) . await ;
3535 } ;
3636 let endpoint_url = url:: Url :: parse ( endpoint) . map_err ( |error| {
37- WebSocketError :: Io ( std:: io:: Error :: new (
38- std:: io:: ErrorKind :: InvalidInput ,
39- error,
40- ) )
37+ WebSocketError :: Io ( std:: io:: Error :: new ( std:: io:: ErrorKind :: InvalidInput , error) )
4138 } ) ?;
4239 let endpoint_host = endpoint_url. host_str ( ) . ok_or_else ( || {
4340 WebSocketError :: Io ( std:: io:: Error :: new (
@@ -52,10 +49,7 @@ impl WebSocketTransport {
5249 ) )
5350 } ) ?;
5451 let proxy_url = url:: Url :: parse ( proxy) . map_err ( |error| {
55- WebSocketError :: Io ( std:: io:: Error :: new (
56- std:: io:: ErrorKind :: InvalidInput ,
57- error,
58- ) )
52+ WebSocketError :: Io ( std:: io:: Error :: new ( std:: io:: ErrorKind :: InvalidInput , error) )
5953 } ) ?;
6054 if proxy_url. scheme ( ) != "http" {
6155 return Err ( WebSocketError :: Io ( std:: io:: Error :: new (
You can’t perform that action at this time.
0 commit comments