mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 15:24:54 +00:00
Remove unnecessary parentheses in chat example (#2732)
This commit is contained in:
parent
87b86a7066
commit
8d0c5c05eb
@ -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…
x
Reference in New Issue
Block a user