From 4f2f86902118f7f74f3212f8ab1d32b85b9ff5f0 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 8 Nov 2024 09:06:33 +0100 Subject: [PATCH] Fix "unused import" warning on Windows --- tests/integration.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index c11726e..cfbf529 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5,7 +5,9 @@ use assert_cmd::cmd::Command; use predicates::prelude::*; -use std::fs::{File, OpenOptions}; +use std::fs::File; +#[cfg(not(windows))] +use std::fs::OpenOptions; use std::io::Write; use tempfile::{tempdir, NamedTempFile};