From 7d3312e96e2f30ba537d4a322fbc5c2a4940cb72 Mon Sep 17 00:00:00 2001 From: Michael Angerman <1809991+stormasm@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:18:52 -0700 Subject: [PATCH] remove warnings in nu_command tests (#10145) several warnings were appearing in nu_command tests when running just the tests in nu_command so I went ahead and removed the warnings... --- crates/nu-command/tests/commands/path/mod.rs | 2 +- crates/nu-command/tests/commands/where_.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/tests/commands/path/mod.rs b/crates/nu-command/tests/commands/path/mod.rs index 84bb2d484b..d14cbde181 100644 --- a/crates/nu-command/tests/commands/path/mod.rs +++ b/crates/nu-command/tests/commands/path/mod.rs @@ -7,7 +7,7 @@ mod parse; mod split; mod type_; -use nu_test_support::{nu, pipeline}; +use nu_test_support::nu; use std::path::MAIN_SEPARATOR; /// Helper function that joins string literals with '/' or '\', based on host OS diff --git a/crates/nu-command/tests/commands/where_.rs b/crates/nu-command/tests/commands/where_.rs index 8478774104..15e4171d51 100644 --- a/crates/nu-command/tests/commands/where_.rs +++ b/crates/nu-command/tests/commands/where_.rs @@ -1,4 +1,5 @@ use nu_test_support::nu; +#[allow(unused_imports)] use nu_test_support::pipeline; #[test]