Fix clippy::manual_let_else

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 05:30:08 +02:00
parent 1019d1e518
commit f8f1a86344
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 15 additions and 24 deletions

View file

@ -47,10 +47,7 @@ async fn user_connected(ws: WebSocket) {
});
while let Some(result) = user_ws_rx.next().await {
let msg = match result {
Ok(msg) => msg,
Err(_) => break,
};
let Ok(msg) = result else { break };
let _ = tx.send(msg).await;
}