From bfb8105682210ab393eb16d6d41bd55482a585d3 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 26 Aug 2026 13:00:16 -0600 Subject: [PATCH] fix(graph): gate unix-only test imports behind cfg(unix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The executor integration-test module hoisted job-test paths into module-level imports, but their only consumer is a #[cfg(unix)] test — on Windows the imports went unused and failed -D warnings. --- src/graph/executor.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/graph/executor.rs b/src/graph/executor.rs index d7fe458..4c2366b 100644 --- a/src/graph/executor.rs +++ b/src/graph/executor.rs @@ -563,10 +563,14 @@ mod tests { mod integration_tests { use super::*; use crate::config::{AppState, WorkingMode}; + #[cfg(unix)] use crate::function::jobs::RingBuf; + #[cfg(unix)] use crate::supervisor::{JobHandle, JobResult, JobState, JobStatus, Supervisor, notification}; use crate::utils::{create_abort_signal, temp_file}; - use std::{fs, mem}; + use std::fs; + #[cfg(unix)] + use std::mem; fn cmd_available(name: &str) -> bool { which::which(name).is_ok()