We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfb9fc0 + 77ba741 commit c33cb5eCopy full SHA for c33cb5e
src/bin/rustup-init.rs
@@ -59,7 +59,7 @@ fn run_rustup_inner() -> Result<utils::ExitCode> {
59
60
// Before we do anything else, ensure we know where we are and who we
61
// are because otherwise we cannot proceed usefully.
62
- process().current_dir()?;
+ utils::current_dir()?;
63
utils::current_exe()?;
64
65
// The name of arg0 determines how the program is going to behave
src/utils/utils.rs
@@ -475,7 +475,7 @@ pub(crate) fn make_executable(path: &Path) -> Result<()> {
475
inner(path)
476
}
477
478
-pub(crate) fn current_dir() -> Result<PathBuf> {
+pub fn current_dir() -> Result<PathBuf> {
479
process()
480
.current_dir()
481
.context(RustupError::LocatingWorkingDir)
0 commit comments