From 95b7c4f771dfd546c8c6e5dd37631e8d196f01d0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 7 Jun 2022 12:11:04 +1000 Subject: [PATCH] Rename `get_targets_from_rustc` to `get_target_from_rustc` Signed-off-by: Jiahao XU --- src/target.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target.rs b/src/target.rs index 2bd52a6e..ad91ffc5 100644 --- a/src/target.rs +++ b/src/target.rs @@ -68,7 +68,7 @@ impl<'a> IntoIterator for &'a Targets { /// Check [this issue](https://github.com/ryankurte/cargo-binstall/issues/155) /// for more information. pub async fn detect_targets() -> Targets { - if let Some(target) = get_targets_from_rustc().await { + if let Some(target) = get_target_from_rustc().await { let mut v = Targets::from_array([target]); #[cfg(target_os = "linux")] @@ -99,7 +99,7 @@ pub async fn detect_targets() -> Targets { } // Figure out what the host target is, from rustc or from this program's own build target -async fn get_targets_from_rustc() -> Option> { +async fn get_target_from_rustc() -> Option> { match Command::new("rustc").arg("-vV").output().await { Ok(Output { status, stdout, .. }) if status.success() => Cursor::new(stdout) .lines()