From b8b82c3ea4ec154581f57b0d00f08f2fd1d871ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 1 Jul 2022 15:28:06 +0200 Subject: chore: use Rust 1.62.0 (#15028) --- cli/tests/integration/vendor_tests.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/integration/vendor_tests.rs b/cli/tests/integration/vendor_tests.rs index 9b8211cd1..54809dacf 100644 --- a/cli/tests/integration/vendor_tests.rs +++ b/cli/tests/integration/vendor_tests.rs @@ -3,6 +3,7 @@ use deno_core::serde_json; use deno_core::serde_json::json; use pretty_assertions::assert_eq; +use std::fmt::Write as _; use std::path::PathBuf; use std::process::Stdio; use test_util as util; @@ -530,20 +531,19 @@ fn update_existing_config_test() { fn success_text(module_count: &str, dir: &str, has_import_map: bool) -> String { let mut text = format!("Vendored {} into {} directory.", module_count, dir); if has_import_map { - text.push_str(& - format!( - concat!( - "\n\nTo use vendored modules, specify the `--import-map {}import_map.json` flag when ", - r#"invoking Deno subcommands or add an `"importMap": ""` "#, - "entry to a deno.json file.", - ), - if dir != "vendor/" { - format!("{}{}", dir.trim_end_matches('/'), if cfg!(windows) { '\\' } else {'/'}) - } else { - dir.to_string() - } - ) + let f = format!( + concat!( + "\n\nTo use vendored modules, specify the `--import-map {}import_map.json` flag when ", + r#"invoking Deno subcommands or add an `"importMap": ""` "#, + "entry to a deno.json file.", + ), + if dir != "vendor/" { + format!("{}{}", dir.trim_end_matches('/'), if cfg!(windows) { '\\' } else {'/'}) + } else { + dir.to_string() + } ); + write!(text, "{}", f).unwrap(); } text } -- cgit v1.2.3