Skip to content

Commit

Permalink
src: lib: web: replace the closure with the function itself (clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Nov 13, 2024
1 parent 39b405f commit c9fe632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit c9fe632

Please sign in to comment.