From 7363ed48b40773c120298ec86d9a9fcf50af8cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 13 Jun 2022 22:47:49 +0200 Subject: [PATCH] Add clippy suggestions --- src/provider/github.rs | 4 ++-- src/provider/gitlab.rs | 4 ++-- src/provider/mod.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/provider/github.rs b/src/provider/github.rs index 094b860..76b6b53 100644 --- a/src/provider/github.rs +++ b/src/provider/github.rs @@ -136,8 +136,8 @@ impl Provider for Github { fn get_current_user(&self) -> Result> { Ok(super::call::( &format!("{GITHUB_API_BASEURL}/user"), - &Self::auth_header_key(), - &self.secret_token(), + Self::auth_header_key(), + self.secret_token(), Some(ACCEPT_HEADER_JSON), )? .username) diff --git a/src/provider/gitlab.rs b/src/provider/gitlab.rs index fc4b216..6acff35 100644 --- a/src/provider/gitlab.rs +++ b/src/provider/gitlab.rs @@ -157,8 +157,8 @@ impl Provider for Gitlab { fn get_current_user(&self) -> Result> { Ok(super::call::( &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) diff --git a/src/provider/mod.rs b/src/provider/mod.rs index be0535b..da72500 100644 --- a/src/provider/mod.rs +++ b/src/provider/mod.rs @@ -295,7 +295,7 @@ pub trait Provider { for repo in repos { let namespace = repo.namespace(); - let mut repo = repo.into_repo_config(&self.name(), worktree_setup, force_ssh); + let mut repo = repo.into_repo_config(self.name(), worktree_setup, force_ssh); // Namespace is already part of the hashmap key. I'm not too happy // about the data exchange format here.