File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -1151,7 +1151,7 @@ fn target_add(
1151
1151
Some ( TargetTriple :: new ( target) ) ,
1152
1152
false ,
1153
1153
) ;
1154
- distributable. add_component ( new_component) ?;
1154
+ utils :: run_future ( distributable. add_component ( new_component) ) ?;
1155
1155
}
1156
1156
1157
1157
Ok ( utils:: ExitCode ( 0 ) )
@@ -1213,7 +1213,7 @@ fn component_add(
1213
1213
1214
1214
for component in & components {
1215
1215
let new_component = Component :: try_new ( component, & distributable, target. as_ref ( ) ) ?;
1216
- distributable. add_component ( new_component) ?;
1216
+ utils :: run_future ( distributable. add_component ( new_component) ) ?;
1217
1217
}
1218
1218
1219
1219
Ok ( utils:: ExitCode ( 0 ) )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl<'a> DistributableToolchain<'a> {
53
53
& self . desc
54
54
}
55
55
56
- pub ( crate ) fn add_component ( & self , mut component : Component ) -> anyhow:: Result < ( ) > {
56
+ pub ( crate ) async fn add_component ( & self , mut component : Component ) -> anyhow:: Result < ( ) > {
57
57
// TODO: take multiple components?
58
58
let manifestation = self . get_manifestation ( ) ?;
59
59
let manifest = self . get_manifest ( ) ?;
@@ -111,14 +111,16 @@ impl<'a> DistributableToolchain<'a> {
111
111
& |n : crate :: dist:: Notification < ' _ > | ( self . cfg . notify_handler ) ( n. into ( ) ) ;
112
112
let download_cfg = self . cfg . download_cfg ( & notify_handler) ;
113
113
114
- utils:: run_future ( manifestation. update (
115
- & manifest,
116
- changes,
117
- false ,
118
- & download_cfg,
119
- & self . desc . manifest_name ( ) ,
120
- false ,
121
- ) ) ?;
114
+ manifestation
115
+ . update (
116
+ & manifest,
117
+ changes,
118
+ false ,
119
+ & download_cfg,
120
+ & self . desc . manifest_name ( ) ,
121
+ false ,
122
+ )
123
+ . await ?;
122
124
123
125
Ok ( ( ) )
124
126
}
You can’t perform that action at this time.
0 commit comments