File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ impl<'a> InstallMethod<'a> {
72
72
}
73
73
74
74
( self . cfg ( ) . notify_handler ) ( RootNotification :: ToolchainDirectory ( & self . dest_path ( ) ) ) ;
75
- let updated = self . run ( & self . dest_path ( ) , & |n| {
75
+ let updated = utils :: run_future ( self . run ( & self . dest_path ( ) , & |n| {
76
76
( self . cfg ( ) . notify_handler ) ( n. into ( ) )
77
- } ) ?;
77
+ } ) ) ?;
78
78
79
79
let status = match updated {
80
80
false => {
@@ -102,7 +102,7 @@ impl<'a> InstallMethod<'a> {
102
102
}
103
103
}
104
104
105
- fn run ( & self , path : & Path , notify_handler : & dyn Fn ( Notification < ' _ > ) ) -> Result < bool > {
105
+ async fn run ( & self , path : & Path , notify_handler : & dyn Fn ( Notification < ' _ > ) ) -> Result < bool > {
106
106
if path. exists ( ) {
107
107
// Don't uninstall first for Dist method
108
108
match self {
@@ -136,7 +136,7 @@ impl<'a> InstallMethod<'a> {
136
136
..
137
137
} => {
138
138
let prefix = & InstallPrefix :: from ( path. to_owned ( ) ) ;
139
- let maybe_new_hash = utils :: run_future ( dist:: update_from_dist (
139
+ let maybe_new_hash = dist:: update_from_dist (
140
140
* dl_cfg,
141
141
update_hash. as_deref ( ) ,
142
142
desc,
@@ -147,7 +147,8 @@ impl<'a> InstallMethod<'a> {
147
147
old_date_version. as_ref ( ) . map ( |dv| dv. 0 . as_str ( ) ) ,
148
148
components,
149
149
targets,
150
- ) ) ?;
150
+ )
151
+ . await ?;
151
152
152
153
if let Some ( hash) = maybe_new_hash {
153
154
if let Some ( hash_file) = update_hash {
You can’t perform that action at this time.
0 commit comments