@@ -631,7 +631,7 @@ pub async fn main() -> Result<utils::ExitCode> {
631631 }
632632 ToolchainSubcmd :: Uninstall { opts } => toolchain_remove ( cfg, opts) ,
633633 } ,
634- RustupSubcmd :: Check => check_updates ( cfg) ,
634+ RustupSubcmd :: Check => check_updates ( cfg) . await ,
635635 RustupSubcmd :: Default { toolchain } => default_ ( cfg, toolchain) ,
636636 RustupSubcmd :: Target { subcmd } => match subcmd {
637637 TargetSubcmd :: List {
@@ -749,14 +749,14 @@ fn default_(cfg: &Cfg, toolchain: Option<MaybeResolvableToolchainName>) -> Resul
749749 Ok ( utils:: ExitCode ( 0 ) )
750750}
751751
752- fn check_updates ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
752+ async fn check_updates ( cfg : & Cfg ) -> Result < utils:: ExitCode > {
753753 let mut t = process ( ) . stdout ( ) . terminal ( ) ;
754754 let channels = cfg. list_channels ( ) ?;
755755
756756 for channel in channels {
757757 let ( name, distributable) = channel;
758758 let current_version = distributable. show_version ( ) ?;
759- let dist_version = utils :: run_future ( distributable. show_dist_version ( ) ) ?;
759+ let dist_version = distributable. show_dist_version ( ) . await ?;
760760 let _ = t. attr ( terminalsource:: Attr :: Bold ) ;
761761 write ! ( t. lock( ) , "{name} - " ) ?;
762762 match ( current_version, dist_version) {
@@ -785,7 +785,7 @@ fn check_updates(cfg: &Cfg) -> Result<utils::ExitCode> {
785785 }
786786 }
787787
788- utils :: run_future ( check_rustup_update ( ) ) ?;
788+ check_rustup_update ( ) . await ?;
789789
790790 Ok ( utils:: ExitCode ( 0 ) )
791791}
0 commit comments