Skip to content

Commit

Permalink
Remove unnecessary parentheses in chat example (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
srcres258 committed May 7, 2024
1 parent 87b86a7 commit 8d0c5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ async fn websocket(stream: WebSocket, state: Arc<AppState>) {

// If any one of the tasks run to completion, we abort the other.
tokio::select! {
_ = (&mut send_task) => recv_task.abort(),
_ = (&mut recv_task) => send_task.abort(),
_ = &mut send_task => recv_task.abort(),
_ = &mut recv_task => send_task.abort(),
};

// Send "user left" message (similar to "joined" above).
Expand Down

0 comments on commit 8d0c5c0

Please sign in to comment.