Skip to content

Commit 84495dc

Browse files
committed
Use Cfg::current_dir in override_remove()
1 parent e25cb0f commit 84495dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/rustup_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ fn override_remove(cfg: &Cfg, path: Option<&Path>, nonexistent: bool) -> Result<
13341334
} else if let Some(path) = path {
13351335
vec![path.to_owned()]
13361336
} else {
1337-
vec![utils::current_dir()?]
1337+
vec![cfg.current_dir.clone()]
13381338
};
13391339

13401340
for p in &paths {

0 commit comments

Comments
 (0)