From c9fe6326086b0af1e8d092628299e31539a4e019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Wed, 13 Nov 2024 09:08:01 -0300 Subject: [PATCH] src: lib: web: replace the closure with the function itself (clippy) --- src/lib/web/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/web/mod.rs b/src/lib/web/mod.rs index 0215b05..7571e7e 100644 --- a/src/lib/web/mod.rs +++ b/src/lib/web/mod.rs @@ -109,7 +109,7 @@ async fn websocket_connection(socket: WebSocket, state: AppState) { } async fn log_websocket_handler(ws: WebSocketUpgrade) -> Response { - ws.on_upgrade(|socket| log_websocket_connection(socket)) + ws.on_upgrade(log_websocket_connection) } #[instrument(level = "debug", skip_all)]