Skip to content

Commit 8972c87

Browse files
committed
refactor(config)!: make resolve_local_toolchain() sync
1 parent 682d7ab commit 8972c87

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/cli/proxy_mode.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ pub async fn main(arg0: &str, current_dir: PathBuf, process: &Process) -> Result
3232
.collect();
3333

3434
let cfg = set_globals(current_dir, false, true, process)?;
35-
let cmd = cfg
36-
.resolve_local_toolchain(toolchain)?
37-
.await
38-
.command(arg0)?;
35+
let cmd = cfg.resolve_local_toolchain(toolchain)?.command(arg0)?;
3936
run_command_for_dir(cmd, arg0, &cmd_args)
4037
}

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ impl<'a> Cfg<'a> {
722722
})
723723
}
724724

725-
pub(crate) async fn resolve_local_toolchain(
725+
pub(crate) fn resolve_local_toolchain(
726726
&self,
727727
name: Option<ResolvableLocalToolchainName>,
728728
) -> Result<Toolchain<'_>> {

0 commit comments

Comments
 (0)