From a6474539b83b396f93a95fc20f92ae0eca8bb9d6 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Fri, 6 Nov 2026 08:35:22 +0800 Subject: [PATCH] fix(remote): build the Docker run tests' helpers only where they run (#1645) The container command tests are Unix-only, so on Windows their helpers and the PathBuf import were unused and clippy -D warnings failed the Rust (windows-latest) job. --- crates/ide-remote/src/docker.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ide-remote/src/docker.rs b/crates/ide-remote/src/docker.rs index b925bad8..f59dc8cd 100644 --- a/crates/ide-remote/src/docker.rs +++ b/crates/ide-remote/src/docker.rs @@ -193,8 +193,10 @@ pub fn compose_container_root(config_json: &str, service: &str, root: &Path) -> #[cfg(test)] mod tests { use super::*; + #[cfg(unix)] use std::path::PathBuf; + #[cfg(unix)] fn config(command: &str, args: &[&str]) -> RunConfig { RunConfig { id: "app".into(), @@ -212,6 +214,7 @@ mod tests { } } + #[cfg(unix)] fn run<'a>( target: &'a RunTarget, endpoint: &'a BTreeMap,