From 2faa64fb68ae453eb500dbc158012b03486d4abf Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sat, 31 Oct 2026 21:23:16 +0800 Subject: [PATCH] test(project): limit Unix-only trust test imports to Unix (#571) The trust integration tests that use these imports only compile on Unix, so they were unused on Windows and failed cargo clippy -D warnings. --- crates/ide-host/tests/trust.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ide-host/tests/trust.rs b/crates/ide-host/tests/trust.rs index 011d5946..bf6a0a05 100644 --- a/crates/ide-host/tests/trust.rs +++ b/crates/ide-host/tests/trust.rs @@ -1,7 +1,10 @@ use ide_core::NullSink; -use ide_host::{Host, HostConfig, ops, trust::TrustStore}; +#[cfg(unix)] +use ide_host::ops; +use ide_host::{Host, HostConfig, trust::TrustStore}; use std::path::Path; use std::sync::Arc; +#[cfg(unix)] use std::time::{Duration, Instant}; fn host(base: &Path, environment: bool) -> Arc {