From 0e5886ace1600b492dce12991fce42632446d920 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Tue, 9 Aug 2022 21:28:03 -0700 Subject: [PATCH] Fix unused import warning on Linux+Mac (#6281) --- crates/nu-command/tests/commands/run_external.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/tests/commands/run_external.rs b/crates/nu-command/tests/commands/run_external.rs index e1c2690e49..08853de0e9 100644 --- a/crates/nu-command/tests/commands/run_external.rs +++ b/crates/nu-command/tests/commands/run_external.rs @@ -1,4 +1,4 @@ -use nu_test_support::fs::Stub::{EmptyFile, FileWithContent}; +use nu_test_support::fs::Stub::EmptyFile; use nu_test_support::playground::Playground; use nu_test_support::{nu, pipeline}; @@ -265,6 +265,7 @@ fn single_quote_does_not_expand_path_glob_windows() { #[cfg(windows)] #[test] fn can_run_batch_files() { + use nu_test_support::fs::Stub::FileWithContent; Playground::setup("run a Windows batch file", |dirs, sandbox| { sandbox.with_files(vec![FileWithContent( "foo.cmd", @@ -282,6 +283,7 @@ fn can_run_batch_files() { #[cfg(windows)] #[test] fn can_run_batch_files_without_cmd_extension() { + use nu_test_support::fs::Stub::FileWithContent; Playground::setup( "run a Windows batch file without specifying the extension", |dirs, sandbox| { @@ -302,6 +304,7 @@ fn can_run_batch_files_without_cmd_extension() { #[cfg(windows)] #[test] fn can_run_batch_files_without_bat_extension() { + use nu_test_support::fs::Stub::FileWithContent; Playground::setup( "run a Windows batch file without specifying the extension", |dirs, sandbox| {