Fix invocation of linux::detect_targets_linux

in `detect_targets`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-06 22:41:15 +10:00
parent 4157f20b99
commit 9a8b28afcf
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -17,7 +17,7 @@ pub const TARGET: &str = env!("TARGET");
pub async fn detect_targets() -> Vec<Box<str>> {
#[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<Box<str>> {
pub(super) async fn detect_targets_linux() -> Vec<Box<str>> {
let abi = parse_abi();
if let Ok(Output {