mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
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
This commit is contained in:
parent
79b3bc05d6
commit
701ce9b334
7 changed files with 69 additions and 67 deletions
|
@ -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()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue