From 27b88556420b9fac8c16d1a9aa5de9336e1c80fc Mon Sep 17 00:00:00 2001 From: Taylor Mutch Date: Tue, 23 Jun 2026 19:38:32 -0700 Subject: [PATCH] fix(ci): fix linting issues Signed-off-by: Taylor Mutch --- crates/openshell-sandbox/src/lib.rs | 3 +++ crates/openshell-server/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/openshell-sandbox/src/lib.rs b/crates/openshell-sandbox/src/lib.rs index 489e4fc01..63ad1117c 100644 --- a/crates/openshell-sandbox/src/lib.rs +++ b/crates/openshell-sandbox/src/lib.rs @@ -7,8 +7,10 @@ mod activity_aggregator; mod denial_aggregator; +#[cfg_attr(not(target_os = "linux"), allow(dead_code))] mod google_cloud_metadata; mod mechanistic_mapper; +#[cfg_attr(not(target_os = "linux"), allow(dead_code))] mod metadata_server; use miette::Result; @@ -65,6 +67,7 @@ use openshell_supervisor_network::opa::OpaEngine; pub use openshell_supervisor_process::process::{ProcessHandle, ProcessStatus}; use openshell_supervisor_process::skills; use tokio::sync::mpsc::UnboundedSender; +#[cfg(target_os = "linux")] use tokio::time::timeout; /// Run a command in the sandbox. diff --git a/crates/openshell-server/src/lib.rs b/crates/openshell-server/src/lib.rs index da47e48a8..dda8708e0 100644 --- a/crates/openshell-server/src/lib.rs +++ b/crates/openshell-server/src/lib.rs @@ -344,7 +344,7 @@ pub async fn run_server( let state = Arc::new(state); - let (_shutdown_tx, shutdown_rx) = watch::channel(false); + let (shutdown_tx, shutdown_rx) = watch::channel(false); // Resume sandboxes that were stopped during the previous gateway // shutdown so the running compute state matches the persisted store.