From 8d0c5c05eb75eb779591c8000705e785123868a0 Mon Sep 17 00:00:00 2001 From: src_resources <2023002089@link.tyut.edu.cn> Date: Tue, 7 May 2024 18:33:17 +0800 Subject: [PATCH] Remove unnecessary parentheses in chat example (#2732) --- examples/chat/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chat/src/main.rs b/examples/chat/src/main.rs index 02e3bdc0..149ffe0d 100644 --- a/examples/chat/src/main.rs +++ b/examples/chat/src/main.rs @@ -130,8 +130,8 @@ async fn websocket(stream: WebSocket, state: Arc) { // 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).