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

@@ -157,8 +157,8 @@ impl Provider for Gitlab {
fn get_current_user(&self) -> Result<String, ApiErrorResponse<GitlabApiErrorResponse>> {
Ok(super::call::<GitlabUser, GitlabApiErrorResponse>(
&format!("{}/api/v4/user", self.api_url()),
&Self::auth_header_key(),
&self.secret_token(),
Self::auth_header_key(),
self.secret_token(),
Some(ACCEPT_HEADER_JSON),
)?
.username)