summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-10 11:09:45 -0400
committerGitHub <noreply@github.com>2023-06-10 11:09:45 -0400
commit7f15126f23d97f20a4fb33e43136cd4d13825863 (patch)
tree85d77389969b31999680059e65954a9fa863758e /cli/tools/installer.rs
parentf3326eebd6af2aaca1543e8cb543a7b16762bc96 (diff)
chore(tests): test_util - Add `PathRef` (#19450)
This adds a new `PathRef` struct to test_util for making it easier to work with paths in test code. I'm going to expand on this more in the future.
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 07606d5f8..03c2ffdcf 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -1022,9 +1022,7 @@ mod tests {
let result = create_install_shim(
Flags {
- config_flag: ConfigFlag::Path(
- config_file_path.to_string_lossy().to_string(),
- ),
+ config_flag: ConfigFlag::Path(config_file_path.to_string()),
..Flags::default()
},
InstallFlags {
@@ -1137,7 +1135,7 @@ mod tests {
let result = create_install_shim(
Flags {
- import_map_path: Some(import_map_path.to_string_lossy().to_string()),
+ import_map_path: Some(import_map_path.to_string()),
..Flags::default()
},
InstallFlags {