diff --git a/crates/fs-mistrust/src/lib.rs b/crates/fs-mistrust/src/lib.rs index bd23a26b3..b3488a421 100644 --- a/crates/fs-mistrust/src/lib.rs +++ b/crates/fs-mistrust/src/lib.rs @@ -815,8 +815,12 @@ impl<'a> Verifier<'a> { mod test { #![allow(clippy::unwrap_used)] use super::*; - use testing::{Dir, LinkType}; + use testing::Dir; + #[cfg(target_family = "unix")] + use testing::LinkType; + + #[cfg(target_family = "unix")] #[test] fn simple_cases() { let d = Dir::new();