Skip to content

Commit 0d81e09

Browse files
committed
fixup! fixup! refactor(rustup-mode): extract warn_if_host_is_incompatible()
1 parent 354c17d commit 0d81e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::{
1919
cli::download_tracker::DownloadTracker,
2020
config::Cfg,
2121
dist::{
22-
manifest::ComponentStatus, notifications as dist_notifications, PartialToolchainDesc,
22+
manifest::ComponentStatus, notifications as dist_notifications,
2323
TargetTriple, ToolchainDesc,
2424
},
2525
install::UpdateStatus,
@@ -643,7 +643,7 @@ pub(crate) fn warn_if_host_is_incompatible(
643643
target_triple: &TargetTriple,
644644
force_non_host: bool,
645645
) -> Result<()> {
646-
if !force_non_host && !host_arch.can_run(&target_triple)? {
646+
if !force_non_host && !host_arch.can_run(target_triple)? {
647647
error!("DEPRECATED: future versions of rustup will require --force-non-host to install a non-host toolchain.");
648648
warn!("toolchain '{toolchain}' may not be able to run on this system.");
649649
warn!("If you meant to build software to target that platform, perhaps try `rustup target add {target_triple}` instead?");

0 commit comments

Comments
 (0)