Skip to content

Commit 55c3b79

Browse files
committed
fix(cluster): gate readiness warn import to Linux
The `warn` import in readiness.rs is only used by the Linux systemd notification path. On non-Linux targets that path is compiled out, leaving the import unused and breaking `clippy -D warnings`. Gate the import to target_os = "linux" so non-Linux builds lint cleanly.
1 parent 68217eb commit 55c3b79

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nodedb-cluster/src/readiness.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
//! no-op so the server builds and runs unchanged; `sd-notify` itself
1414
//! is only compiled in on Linux via a target-gated Cargo dependency.
1515
16-
use tracing::{debug, warn};
16+
use tracing::debug;
17+
#[cfg(target_os = "linux")]
18+
use tracing::warn;
1719

1820
/// Signal that the server is fully initialised.
1921
///

0 commit comments

Comments
 (0)