diff --git a/src/http/client.rs b/src/http/client.rs index d906b00d..d3225dd4 100644 --- a/src/http/client.rs +++ b/src/http/client.rs @@ -651,15 +651,9 @@ async fn send_ws_push( .send(TungsteniteMessage::Binary(payload.bytes)) .await } - WsMessageType::Ping => { - ws_stream.send(TungsteniteMessage::Ping(vec![])).await - } - WsMessageType::Pong => { - ws_stream.send(TungsteniteMessage::Pong(vec![])).await - } - WsMessageType::Close => { - ws_stream.send(TungsteniteMessage::Close(None)).await - } + WsMessageType::Ping => ws_stream.send(TungsteniteMessage::Ping(vec![])).await, + WsMessageType::Pong => ws_stream.send(TungsteniteMessage::Pong(vec![])).await, + WsMessageType::Close => ws_stream.send(TungsteniteMessage::Close(None)).await, }; match result {