Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PredaaA committed May 1, 2024
1 parent e0c9028 commit 7179981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ pub async fn handle_client<S: 'static + AsyncRead + AsyncWrite + Unpin + Send>(
#[cfg(not(feature = "simd-json"))]
let payload = unsafe { String::from_utf8_unchecked(data) };

let Some(deserializer) = GatewayEvent::from_json(&payload) else { continue };
let Some(deserializer) = GatewayEvent::from_json(&payload) else {
continue;
};

match deserializer.op() {
1 => {
Expand Down

0 comments on commit 7179981

Please sign in to comment.