mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 16:16:37 +00:00
Fix compilation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d118412c2b
commit
25b216c7b2
1 changed files with 3 additions and 5 deletions
|
@ -12,7 +12,7 @@ use std::{
|
|||
use binstalk_downloader::{download::Download, remote};
|
||||
use compact_str::{format_compact, CompactString, ToCompactString};
|
||||
use tokio::sync::OnceCell;
|
||||
use tracing::{debug, instrument};
|
||||
use tracing::instrument;
|
||||
use url::Url;
|
||||
|
||||
mod common;
|
||||
|
@ -257,9 +257,7 @@ impl GhApiClient {
|
|||
)
|
||||
.await
|
||||
{
|
||||
Ok(artifacts) => {
|
||||
Ok(Some(artifacts))
|
||||
}
|
||||
Ok(artifacts) => Ok(Some(artifacts)),
|
||||
Err(GhApiError::NotFound) => Ok(None),
|
||||
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 {
|
||||
let client = client.clone();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue