From 00a7c410a00d34c2e9d3acbd1327a5f32822fb6b Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Wed, 17 Jul 2024 19:19:54 +0100 Subject: [PATCH] ci: fix warning in windows build --- tests/test_exact_output.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_exact_output.rs b/tests/test_exact_output.rs index 08e8f7f..9abeb33 100644 --- a/tests/test_exact_output.rs +++ b/tests/test_exact_output.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use std::ffi::OsStr; use std::process::Output; use std::sync::Once; -use std::{fs, io, str}; +use std::{io, str}; static INIT: Once = Once::new(); static UNREADABLE_DIR_PATH: &str = "/tmp/unreadable_dir"; @@ -38,6 +38,7 @@ fn copy_test_data(dir: &str) { fn create_unreadable_directory() -> io::Result<()> { #[cfg(unix)] { + use std::fs; use std::fs::Permissions; use std::os::unix::fs::PermissionsExt; fs::create_dir_all(UNREADABLE_DIR_PATH)?;