From 25b216c7b26145c961710cb244733f981f40f915 Mon Sep 17 00:00:00 2001
From: Jiahao XU <Jiahao_XU@outlook.com>
Date: Mon, 10 Jun 2024 00:33:55 +1000
Subject: [PATCH] Fix compilation

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---
 crates/binstalk-git-repo-api/src/gh_api_client.rs | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/crates/binstalk-git-repo-api/src/gh_api_client.rs b/crates/binstalk-git-repo-api/src/gh_api_client.rs
index 256d0114..d7238dd6 100644
--- a/crates/binstalk-git-repo-api/src/gh_api_client.rs
+++ b/crates/binstalk-git-repo-api/src/gh_api_client.rs
@@ -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();