From 9a8b28afcfe80e9dce7f64537e3752829e0eeeed Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 6 Jun 2022 22:41:15 +1000 Subject: [PATCH] Fix invocation of `linux::detect_targets_linux` in `detect_targets` 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 24b0e3e9..03c02a56 100644 --- a/src/target.rs +++ b/src/target.rs @@ -17,7 +17,7 @@ pub const TARGET: &str = env!("TARGET"); pub async fn detect_targets() -> Vec> { #[cfg(target_os = "linux")] { - return linux::detect_targets_linux().await; + linux::detect_targets_linux().await } #[cfg(target_os = "macos")] { @@ -31,7 +31,7 @@ mod linux { use std::process::Output; use tokio::process::Command; - async fn detect_targets_linux() -> Vec> { + pub(super) async fn detect_targets_linux() -> Vec> { let abi = parse_abi(); if let Ok(Output {