Fix unused import warning on Linux+Mac (#6281)

This commit is contained in:
Reilly Wood 2022-08-09 21:28:03 -07:00 committed by GitHub
parent 4b89c5f900
commit 0e5886ace1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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