Skip to content

Commit d28e306

Browse files
committed
refactor(cli/common)!: take in toolchain: String in warn_if_host_is_incompatible()
1 parent 6c53684 commit d28e306

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cli/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ pub(crate) fn ignorable_error(
629629
/// Warns if rustup is trying to install a toolchain that might not be
630630
/// able to run on the host system.
631631
pub(crate) fn warn_if_host_is_incompatible(
632-
toolchain: impl Display,
632+
toolchain: String,
633633
host_arch: &TargetTriple,
634634
target_triple: &TargetTriple,
635635
force_non_host: bool,

src/cli/rustup_mode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ async fn update(
838838
let host_arch = TargetTriple::from_host_or_build(cfg.process);
839839
let target_triple = name.clone().resolve(&host_arch)?.target;
840840
common::warn_if_host_is_incompatible(
841-
&name,
841+
name.to_string(),
842842
&host_arch,
843843
&target_triple,
844844
force_non_host,

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ impl<'a> Cfg<'a> {
794794
verbose: bool,
795795
) -> Result<(UpdateStatus, Toolchain<'_>)> {
796796
common::warn_if_host_is_incompatible(
797-
toolchain,
797+
toolchain.to_string(),
798798
&TargetTriple::from_host_or_build(self.process),
799799
&toolchain.target,
800800
force_non_host,

0 commit comments

Comments
 (0)