We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fa753 commit ae64d51Copy full SHA for ae64d51
src/cli/rustup_mode.rs
@@ -1267,7 +1267,7 @@ async fn toolchain_link(
1267
1268
if true {
1269
InstallMethod::Link {
1270
- src: &utils::to_absolute(src, &cfg.current_dir),
+ src: &cfg.current_dir.join(src),
1271
dest,
1272
cfg,
1273
}
src/utils/utils.rs
@@ -495,12 +495,6 @@ pub fn current_exe() -> Result<PathBuf> {
495
env::current_exe().context(RustupError::LocatingWorkingDir)
496
497
498
-pub(crate) fn to_absolute<P: AsRef<Path>>(path: P, cwd: &Path) -> PathBuf {
499
- let mut new = PathBuf::from(cwd);
500
- new.push(path);
501
- new
502
-}
503
-
504
pub(crate) fn home_dir() -> Option<PathBuf> {
505
home::home_dir_with_env(&home_process())
506
0 commit comments