Skip to content

Commit 52f6a5d

Browse files
committed
Use matches macro as it's more obvious
1 parent d89038a commit 52f6a5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/server_axum/websocket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ async fn handle_core(
474474
}
475475

476476
IdleTimeout | IdleRequest => {
477-
if let IdleRequest = event {
477+
if matches!(event, IdleRequest) {
478478
info!("Container requested to idle");
479479
}
480480

0 commit comments

Comments
 (0)