Fix clippy::manual_let_else
This commit is contained in:
parent
1019d1e518
commit
f8f1a86344
7 changed files with 15 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue