enable ignored_unit_patterns lint

This commit is contained in:
Charles Hall 2024-05-14 17:03:46 -07:00
parent 623824dc0c
commit b0f65913f3
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
5 changed files with 6 additions and 8 deletions

View file

@ -486,8 +486,8 @@ async fn shutdown_signal(handle: ServerHandle) {
let sig: &str;
tokio::select! {
_ = ctrl_c => { sig = "Ctrl+C"; },
_ = terminate => { sig = "SIGTERM"; },
() = ctrl_c => { sig = "Ctrl+C"; },
() = terminate => { sig = "SIGTERM"; },
}
warn!("Received {}, shutting down...", sig);