From 502e908d41d451249c9382afded69faae8949ec3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Oct 2026 17:17:45 +0000 Subject: [PATCH] voelin-gateway: import warn only where SIGHUP reloads (Unix) With the crate list fixed for Windows, `clippy (Windows)` reaches the gateway and refuses `warn` as an unused import there: only the Unix reload_on_hangup uses it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q --- crates/voelin-gateway/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/voelin-gateway/src/main.rs b/crates/voelin-gateway/src/main.rs index 5d0df4e..a82ac7c 100644 --- a/crates/voelin-gateway/src/main.rs +++ b/crates/voelin-gateway/src/main.rs @@ -27,7 +27,7 @@ use axum::response::IntoResponse; use axum::routing::get; use axum::{Json, Router}; use clap::Parser; -use tracing::{info, warn}; +use tracing::info; use tracing_subscriber::EnvFilter; use crate::hub::Hub; @@ -91,6 +91,7 @@ async fn ws(State(hub): State>, upgrade: WebSocketUpgrade) -> impl Into #[cfg(unix)] async fn reload_on_hangup(hub: Arc) { use tokio::signal::unix::{SignalKind, signal}; + use tracing::warn; let Ok(mut hangup) = signal(SignalKind::hangup()) else { return }; while hangup.recv().await.is_some() { if let Err(error) = hub.settings.reload() {