Skip to content

Commit

Permalink
chore: do not network-resolve in elan default (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha authored Dec 10, 2024
1 parent bc4c0de commit a4acc2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elan-cli/elan_mode.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use clap::{App, AppSettings, Arg, ArgMatches, Shell, SubCommand};
use common;
use elan::{command, gc, lookup_toolchain_desc, Cfg, Toolchain};
use elan::{command, gc, lookup_toolchain_desc, lookup_unresolved_toolchain_desc, Cfg, Toolchain};
use elan_dist::dist::ToolchainDesc;
use elan_utils::utils;
use errors::*;
Expand Down Expand Up @@ -252,7 +252,7 @@ pub fn cli() -> App<'static, 'static> {
fn default_(cfg: &Cfg, m: &ArgMatches) -> Result<()> {
let name = m.value_of("toolchain").expect("");
// sanity-check
let _ = lookup_toolchain_desc(cfg, name)?;
let _ = lookup_unresolved_toolchain_desc(cfg, name)?;

cfg.set_default(name)?;
Ok(())
Expand Down

0 comments on commit a4acc2c

Please sign in to comment.