Fix clippy warnings for detect-targets and binstalk-downloader (#2098)

binstalk-downloader clippy warning is specific to windows

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2025-03-20 00:19:43 +10:00 committed by GitHub
parent bb0d6c1f9c
commit 028b24de4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -8,7 +8,7 @@ use tokio::{process::Command, task};
use tracing::debug;
pub(super) async fn detect_targets(target: String) -> Vec<String> {
let (prefix, postfix) = target
let (_, postfix) = target
.rsplit_once('-')
.expect("unwrap: target always has a -");