mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
Remove unnecessary parentheses in chat example (#2732)
This commit is contained in:
parent
87b86a7066
commit
8d0c5c05eb
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
// If any one of the tasks run to completion, we abort the other.
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
_ = (&mut send_task) => recv_task.abort(),
|
_ = &mut send_task => recv_task.abort(),
|
||||||
_ = (&mut recv_task) => send_task.abort(),
|
_ = &mut recv_task => send_task.abort(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Send "user left" message (similar to "joined" above).
|
// Send "user left" message (similar to "joined" above).
|
||||||
|
|
Loading…
Reference in a new issue