tests: fix "unused import" warnings on Windows

This commit is contained in:
Daniel Hofstetter
2024-11-08 14:26:19 +01:00
parent 1471205bf6
commit b7c6eee660
2 changed files with 3 additions and 1 deletions

View File

@@ -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;

View File

@@ -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() {