Skip to content

Commit 84e01b5

Browse files
committed
wip
1 parent dfc9205 commit 84e01b5

30 files changed

+651
-500
lines changed

src/bin/rustup-init.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ async fn maybe_trace_rustup() -> Result<utils::ExitCode> {
9898

9999
#[cfg_attr(feature = "otel", tracing::instrument)]
100100
async fn run_rustup() -> Result<utils::ExitCode> {
101-
if let Ok(dir) = process().var("RUSTUP_TRACE_DIR") {
101+
if let Ok(dir) = process.var("RUSTUP_TRACE_DIR") {
102102
open_trace_file!(dir)?;
103103
}
104104
let result = run_rustup_inner().await;
105-
if process().var("RUSTUP_TRACE_DIR").is_ok() {
105+
if process.var("RUSTUP_TRACE_DIR").is_ok() {
106106
close_trace_file!();
107107
}
108108
result
@@ -121,7 +121,7 @@ async fn run_rustup_inner() -> Result<utils::ExitCode> {
121121
.context(RustupError::LocatingWorkingDir)?;
122122
utils::current_exe()?;
123123

124-
match process().name().as_deref() {
124+
match process.name().as_deref() {
125125
Some("rustup") => rustup_mode::main(current_dir).await,
126126
Some(n) if n.starts_with("rustup-setup") || n.starts_with("rustup-init") => {
127127
// NB: The above check is only for the prefix of the file

0 commit comments

Comments
 (0)