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.
This commit is contained in:
l0ng-ai
2026-10-31 21:23:16 +08:00
committed by GitHub
parent d6f6525ca5
commit 2faa64fb68
+4 -1
View File
@@ -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<Host> {