diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/fmt_tests.rs | 3 | ||||
-rw-r--r-- | cli/tests/integration/inspector_tests.rs | 3 | ||||
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 3 | ||||
-rw-r--r-- | cli/tests/integration/upgrade_tests.rs | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/cli/tests/integration/fmt_tests.rs b/cli/tests/integration/fmt_tests.rs index 5c21b2b7d..144c2b56c 100644 --- a/cli/tests/integration/fmt_tests.rs +++ b/cli/tests/integration/fmt_tests.rs @@ -126,7 +126,8 @@ fn fmt_ignore_unexplicit_files() { #[test] fn fmt_auto_ignore_git_and_node_modules() { - use std::fs::{create_dir_all, File}; + use std::fs::create_dir_all; + use std::fs::File; use std::io::Write; use std::path::PathBuf; fn create_bad_json(t: PathBuf) { diff --git a/cli/tests/integration/inspector_tests.rs b/cli/tests/integration/inspector_tests.rs index af1325d64..e291c17bb 100644 --- a/cli/tests/integration/inspector_tests.rs +++ b/cli/tests/integration/inspector_tests.rs @@ -211,7 +211,8 @@ fn assert_stderr( } fn inspect_flag_with_unique_port(flag_prefix: &str) -> String { - use std::sync::atomic::{AtomicU16, Ordering}; + use std::sync::atomic::AtomicU16; + use std::sync::atomic::Ordering; static PORT: AtomicU16 = AtomicU16::new(9229); let port = PORT.fetch_add(1, Ordering::Relaxed); format!("{}=127.0.0.1:{}", flag_prefix, port) diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index df31ee98b..af9fce187 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -602,7 +602,8 @@ fn lexical_scoped_variable() { #[test] fn missing_deno_dir() { - use std::fs::{read_dir, remove_dir_all}; + use std::fs::read_dir; + use std::fs::remove_dir_all; const DENO_DIR: &str = "nonexistent"; let test_deno_dir = test_util::testdata_path().join(DENO_DIR); let (out, err) = util::run_and_collect_output( diff --git a/cli/tests/integration/upgrade_tests.rs b/cli/tests/integration/upgrade_tests.rs index 2822bc8de..f4eaa03c9 100644 --- a/cli/tests/integration/upgrade_tests.rs +++ b/cli/tests/integration/upgrade_tests.rs @@ -1,6 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -use std::process::{Command, Stdio}; +use std::process::Command; +use std::process::Stdio; use test_util as util; use test_util::TempDir; |