Skip to content

Commit 28ba0c5

Browse files
committed
refactor(config)!: make resolve_toolchain() sync
1 parent 6030f8c commit 28ba0c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cli/rustup_mode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ async fn which(
908908
binary: &str,
909909
toolchain: Option<ResolvableToolchainName>,
910910
) -> Result<utils::ExitCode> {
911-
let binary_path = cfg.resolve_toolchain(toolchain).await?.binary_file(binary);
911+
let binary_path = cfg.resolve_toolchain(toolchain)?.binary_file(binary);
912912

913913
utils::assert_is_file(&binary_path)?;
914914

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ impl<'a> Cfg<'a> {
709709
Ok(Some(Toolchain::new(self, name)?.rustc_version()))
710710
}
711711

712-
pub(crate) async fn resolve_toolchain(
712+
pub(crate) fn resolve_toolchain(
713713
&self,
714714
name: Option<ResolvableToolchainName>,
715715
) -> Result<Toolchain<'_>> {

0 commit comments

Comments
 (0)