Skip to content

Commit 5e6a3ea

Browse files
committed
Make setup_mode::main async
1 parent e54435c commit 5e6a3ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/rustup-init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async fn run_rustup_inner() -> Result<utils::ExitCode> {
119119
// name. Browsers rename duplicates to
120120
// e.g. rustup-setup(2), and this allows all variations
121121
// to work.
122-
setup_mode::main()
122+
setup_mode::main().await
123123
}
124124
Some(n) if n.starts_with("rustup-gc-") => {
125125
// This is the final uninstallation stage on windows where

src/cli/setup_mode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
};
1515

1616
#[cfg_attr(feature = "otel", tracing::instrument)]
17-
pub fn main() -> Result<utils::ExitCode> {
17+
pub async fn main() -> Result<utils::ExitCode> {
1818
let args: Vec<_> = process().args().collect();
1919
let arg1 = args.get(1).map(|a| &**a);
2020

@@ -157,5 +157,5 @@ pub fn main() -> Result<utils::ExitCode> {
157157
warn!("{}", common::WARN_COMPLETE_PROFILE);
158158
}
159159

160-
utils::run_future(self_update::install(no_prompt, verbose, quiet, opts))
160+
self_update::install(no_prompt, verbose, quiet, opts).await
161161
}

0 commit comments

Comments
 (0)