diff --git a/src/api/v2/updates.rs b/src/api/v2/updates.rs index c81ecfa..efac5b4 100644 --- a/src/api/v2/updates.rs +++ b/src/api/v2/updates.rs @@ -568,8 +568,9 @@ mod tests { let result = mock_stream::(test).await; match result { Ok(..) => panic!("authentication succeeded unexpectedly"), - Err(Error::WebSocket(WebSocketError::Protocol(e))) - if e == ProtocolError::ResetWithoutClosingHandshake => {}, + Err(Error::WebSocket(WebSocketError::Protocol( + ProtocolError::ResetWithoutClosingHandshake, + ))) => {}, Err(e) => panic!("received unexpected error: {e}"), } } @@ -627,8 +628,7 @@ mod tests { let err = mock_stream::(test).await.unwrap_err(); match err { - Error::WebSocket(WebSocketError::Protocol(e)) - if e == ProtocolError::ResetWithoutClosingHandshake => {}, + Error::WebSocket(WebSocketError::Protocol(ProtocolError::ResetWithoutClosingHandshake)) => {}, e => panic!("received unexpected error: {e}"), } }