Add clippy suggestions

This commit is contained in:
2022-06-13 22:47:49 +02:00
parent 96943c1483
commit 7363ed48b4
3 changed files with 5 additions and 5 deletions

View File

@@ -136,8 +136,8 @@ impl Provider for Github {
fn get_current_user(&self) -> Result<String, ApiErrorResponse<GithubApiErrorResponse>> {
Ok(super::call::<GithubUser, GithubApiErrorResponse>(
&format!("{GITHUB_API_BASEURL}/user"),
&Self::auth_header_key(),
&self.secret_token(),
Self::auth_header_key(),
self.secret_token(),
Some(ACCEPT_HEADER_JSON),
)?
.username)