mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
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:
parent
7546e9fb30
commit
ff29f7bbb3
1 changed files with 3 additions and 1 deletions
|
@ -528,7 +528,9 @@ mod test {
|
||||||
let client = create_remote_client();
|
let client = create_remote_client();
|
||||||
|
|
||||||
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() => zeroize::Zeroizing::new(auth_token.into_boxed_str()),
|
Ok(auth_token) if !auth_token.is_empty() => {
|
||||||
|
zeroize::Zeroizing::new(auth_token.into_boxed_str())
|
||||||
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue