mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00
Fix invocation of linux::detect_targets_linux
in `detect_targets` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
4157f20b99
commit
9a8b28afcf
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue