From 701ce9b3342647cf01cb23c4fc28bc99ce0aa8c1 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 11 Feb 2020 09:29:36 +0000 Subject: refactor: Use PathBuf for paths in flag parsing and whitelists (#3955) * Use PathBuf for DenoSubcommand::Bundle's out_file * Use PathBuf for DenoSubcommand::Format's files * Use PathBuf for DenoSubcommand::Install's dir * Use PathBuf for read/write whitelists --- cli/tests/integration_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration_tests.rs') diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index a42dd439e..013e4c41b 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -108,7 +108,7 @@ fn installer_test_local_module_run() { let local_module_str = local_module.to_string_lossy(); installer::install( DenoFlags::default(), - Some(temp_dir.path().to_string_lossy().to_string()), + Some(temp_dir.path().to_path_buf()), "echo_test", &local_module_str, vec!["hello".to_string()], @@ -156,7 +156,7 @@ fn installer_test_remote_module_run() { let temp_dir = TempDir::new().expect("tempdir fail"); installer::install( DenoFlags::default(), - Some(temp_dir.path().to_string_lossy().to_string()), + Some(temp_dir.path().to_path_buf()), "echo_test", "http://localhost:4545/cli/tests/echo.ts", vec!["hello".to_string()], -- cgit v1.2.3