Skip to content

Commit 830aa32

Browse files
committed
style(okx): fix rustfmt warnings in websocket transport
1 parent 4eaa4bb commit 830aa32

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

crates/truefix-okx-client/src/transport/websocket.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)