Skip to content

Commit 1a0511d

Browse files
rbtcollinsdjc
authored andcommitted
Make component_remove async
1 parent 4aa2626 commit 1a0511d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/rustup_mode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ pub async fn main() -> Result<utils::ExitCode> {
655655
component,
656656
toolchain,
657657
target,
658-
} => component_remove(cfg, component, toolchain, target),
658+
} => component_remove(cfg, component, toolchain, target).await,
659659
},
660660
RustupSubcmd::Override { subcmd } => match subcmd {
661661
OverrideSubcmd::List => handle_epipe(common::list_overrides(cfg)),
@@ -1230,7 +1230,7 @@ fn get_target(
12301230
.or_else(|| Some(distributable.desc().target.clone()))
12311231
}
12321232

1233-
fn component_remove(
1233+
async fn component_remove(
12341234
cfg: &Cfg,
12351235
components: Vec<String>,
12361236
toolchain: Option<PartialToolchainDesc>,
@@ -1241,7 +1241,7 @@ fn component_remove(
12411241

12421242
for component in &components {
12431243
let new_component = Component::try_new(component, &distributable, target.as_ref())?;
1244-
utils::run_future(distributable.remove_component(new_component))?;
1244+
distributable.remove_component(new_component).await?;
12451245
}
12461246

12471247
Ok(utils::ExitCode(0))

0 commit comments

Comments
 (0)