Skip to content

Commit e256366

Browse files
committed
refactor(config): extract local_toolchain() from resolve_local_toolchain()
1 parent 4a3826e commit e256366

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,11 @@ impl<'a> Cfg<'a> {
729729
let local = name
730730
.map(|name| name.resolve(&self.get_default_host_triple()?))
731731
.transpose()?;
732-
let toolchain = match local {
732+
self.local_toolchain(local)
733+
}
734+
735+
fn local_toolchain(&self, name: Option<LocalToolchainName>) -> Result<Toolchain<'_>> {
736+
let toolchain = match name {
733737
Some(tc) => tc,
734738
None => {
735739
self.find_active_toolchain()?

0 commit comments

Comments
 (0)