Update crates/binstalk-git-repo-api/src/gh_api_client.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-10-12 21:04:46 +11:00 committed by GitHub
parent ff29f7bbb3
commit 8e421b734e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -529,7 +529,7 @@ mod test {
let auth_token = match env::var("CI_UNIT_TEST_GITHUB_TOKEN") { let auth_token = match env::var("CI_UNIT_TEST_GITHUB_TOKEN") {
Ok(auth_token) if !auth_token.is_empty() => { Ok(auth_token) if !auth_token.is_empty() => {
zeroize::Zeroizing::new(auth_token.into_boxed_str()) Some(zeroize::Zeroizing::new(auth_token.into_boxed_str()))
} }
_ => None, _ => None,
}; };