Skip to content

Commit d407001

Browse files
committed
refactor(cli/rustup-mode): rename forced to force_non_host
1 parent 3c53cbc commit d407001

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/cli/rustup_mode.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ async fn update(
814814
let self_update = !self_update::NEVER_SELF_UPDATE
815815
&& self_update_mode == SelfUpdateMode::Enable
816816
&& !opts.no_self_update;
817-
let forced = opts.force_non_host;
817+
let force_non_host = opts.force_non_host;
818818
if let Some(p) = opts.profile {
819819
cfg.set_profile_override(p);
820820
}
@@ -829,7 +829,12 @@ async fn update(
829829
if name.has_triple() {
830830
let host_arch = TargetTriple::from_host_or_build(cfg.process);
831831
let target_triple = name.clone().resolve(&host_arch)?.target;
832-
common::warn_if_host_is_incompatible(&name, &host_arch, &target_triple, forced)?;
832+
common::warn_if_host_is_incompatible(
833+
&name,
834+
&host_arch,
835+
&target_triple,
836+
force_non_host,
837+
)?;
833838
}
834839
let desc = name.resolve(&cfg.get_default_host_triple()?)?;
835840

0 commit comments

Comments
 (0)