Skip to content

Commit

Permalink
fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Sep 8, 2023
1 parent c916338 commit 7cd0418
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/hyper_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ async fn main() {
);
}
Err(e) => {
tracing::warn!(error = &e as &dyn std::error::Error, "shutdown: forcefully due to timeout");
tracing::warn!(
error = &e as &dyn std::error::Error,
"shutdown: forcefully due to timeout"
);
}
}

Expand Down Expand Up @@ -108,7 +111,10 @@ async fn serve_tcp(shutdown_guard: tokio_graceful::ShutdownGuard) {
let server = server.with_graceful_shutdown(shutdown_guard.clone_weak().into_cancelled());

if let Err(err) = server.await {
tracing::error!(error = &err as &dyn std::error::Error, "server quit with error");
tracing::error!(
error = &err as &dyn std::error::Error,
"server quit with error"
);
}
}

Expand Down

0 comments on commit 7cd0418

Please sign in to comment.