From b7c6eee6603c6d6809820f707d8290aa0207511e Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 8 Nov 2024 14:26:19 +0100 Subject: [PATCH] tests: fix "unused import" warnings on Windows --- tests/by-util/test_last.rs | 2 ++ tests/by-util/test_setsid.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_last.rs b/tests/by-util/test_last.rs index b0ca6ba..8a45990 100644 --- a/tests/by-util/test_last.rs +++ b/tests/by-util/test_last.rs @@ -4,8 +4,10 @@ // file that was distributed with this source code. // spell-checker:ignore (words) symdir somefakedir +#[cfg(unix)] use crate::common::util::TestScenario; +#[cfg(unix)] use regex::Regex; use std::fs; use std::io::Write; diff --git a/tests/by-util/test_setsid.rs b/tests/by-util/test_setsid.rs index cf3d159..878e1f8 100644 --- a/tests/by-util/test_setsid.rs +++ b/tests/by-util/test_setsid.rs @@ -161,7 +161,7 @@ mod unix { #[cfg(not(target_family = "unix"))] mod non_unix { - use crate::common::util::{TestScenario, UCommand}; + use crate::common::util::TestScenario; #[test] fn unsupported_platforms() {