Fix compilation

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-10 00:33:55 +10:00
parent d118412c2b
commit 25b216c7b2
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -12,7 +12,7 @@ use std::{
use binstalk_downloader::{download::Download, remote}; use binstalk_downloader::{download::Download, remote};
use compact_str::{format_compact, CompactString, ToCompactString}; use compact_str::{format_compact, CompactString, ToCompactString};
use tokio::sync::OnceCell; use tokio::sync::OnceCell;
use tracing::{debug, instrument}; use tracing::instrument;
use url::Url; use url::Url;
mod common; mod common;
@ -257,9 +257,7 @@ impl GhApiClient {
) )
.await .await
{ {
Ok(artifacts) => { Ok(artifacts) => Ok(Some(artifacts)),
Ok(Some(artifacts))
}
Err(GhApiError::NotFound) => Ok(None), Err(GhApiError::NotFound) => Ok(None),
Err(err) => Err(err), Err(err) => Err(err),
} }
@ -555,7 +553,7 @@ mod test {
)); ));
} }
if client.has_auth_token() { if client.has_gh_token() {
for repo in PRIVATE_REPOS { for repo in PRIVATE_REPOS {
let client = client.clone(); let client = client.clone();