Fix detect_targets for win and other targets

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-06 23:08:00 +10:00
parent 6b764b0b3f
commit c9c3cffb25
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -45,7 +45,7 @@ pub async fn detect_targets() -> ArrayVec<Box<str>, 2> {
}
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
{
vec![TARGET.into()]
from_array([TARGET.into()])
}
}
}