File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ fn check_updates(cfg: &Cfg) -> Result<utils::ExitCode> {
750
750
for channel in channels {
751
751
let ( name, distributable) = channel;
752
752
let current_version = distributable. show_version ( ) ?;
753
- let dist_version = distributable. show_dist_version ( ) ?;
753
+ let dist_version = utils :: run_future ( distributable. show_dist_version ( ) ) ?;
754
754
let _ = t. attr ( terminalsource:: Attr :: Bold ) ;
755
755
write ! ( t. lock( ) , "{name} - " ) ?;
756
756
match ( current_version, dist_version) {
Original file line number Diff line number Diff line change @@ -525,17 +525,15 @@ impl<'a> DistributableToolchain<'a> {
525
525
Ok ( ( ) )
526
526
}
527
527
528
- pub fn show_dist_version ( & self ) -> anyhow:: Result < Option < String > > {
528
+ pub async fn show_dist_version ( & self ) -> anyhow:: Result < Option < String > > {
529
529
let update_hash = self . cfg . get_hash_file ( & self . desc , false ) ?;
530
530
let notify_handler =
531
531
& |n : crate :: dist:: Notification < ' _ > | ( self . cfg . notify_handler ) ( n. into ( ) ) ;
532
532
let download_cfg = self . cfg . download_cfg ( & notify_handler) ;
533
533
534
- match utils:: run_future ( crate :: dist:: dist:: dl_v2_manifest (
535
- download_cfg,
536
- Some ( & update_hash) ,
537
- & self . desc ,
538
- ) ) ? {
534
+ match crate :: dist:: dist:: dl_v2_manifest ( download_cfg, Some ( & update_hash) , & self . desc )
535
+ . await ?
536
+ {
539
537
Some ( ( manifest, _) ) => Ok ( Some ( manifest. get_rust_version ( ) ?. to_string ( ) ) ) ,
540
538
None => Ok ( None ) ,
541
539
}
You can’t perform that action at this time.
0 commit comments