Skip to content

Commit 1585cd0

Browse files
committed
fix clippy warnings
1 parent 30b6b0c commit 1585cd0

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/server/handle.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,9 @@ fn handle_new_client(
9494
}
9595

9696
fn display_rt_metrics() {
97-
let handle = match Handle::try_current() {
98-
Ok(h) => h,
99-
Err(_) => {
100-
error!("Runtime metrics are not available");
101-
return;
102-
}
97+
let Ok(handle) = Handle::try_current() else {
98+
error!("Runtime metrics are not available");
99+
return;
103100
};
104101
let metrics = handle.metrics();
105102

0 commit comments

Comments
 (0)