diff --git a/crates/knope/src/integrations/github/create_pull_request.rs b/crates/knope/src/integrations/github/create_pull_request.rs index 8cb54c5ad..161e3f0ba 100644 --- a/crates/knope/src/integrations/github/create_pull_request.rs +++ b/crates/knope/src/integrations/github/create_pull_request.rs @@ -32,7 +32,7 @@ pub(crate) async fn create_or_update_pull_request( let (token, client) = state.require_authentication()?; let config::GitHub { owner, repo } = config; let base_url = format!("https://api.github.com/repos/{owner}/{repo}/pulls"); - let authorization_header = format!("Bearer {}", &token); + let authorization_header = format!("Bearer {token}"); let existing_pulls_response = client .get(&base_url) diff --git a/crates/knope/src/integrations/github/create_release.rs b/crates/knope/src/integrations/github/create_release.rs index 593ebead7..b5b0bce79 100644 --- a/crates/knope/src/integrations/github/create_release.rs +++ b/crates/knope/src/integrations/github/create_release.rs @@ -47,7 +47,7 @@ pub(crate) async fn create_release( owner = github_config.owner, repo = github_config.repo, ); - let token_header = format!("token {}", &token); + let token_header = format!("token {token}"); let response = client .post(&url) diff --git a/crates/knope/src/workflow.rs b/crates/knope/src/workflow.rs index ea8835d61..b69028664 100644 --- a/crates/knope/src/workflow.rs +++ b/crates/knope/src/workflow.rs @@ -79,6 +79,6 @@ pub(crate) async fn validate( impl std::fmt::Display for Workflow { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "{}", &self.name) + write!(f, "{}", self.name) } } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index ea14c7eda..2c202d45e 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.96.1" +channel = "1.97.0" components = ["rustfmt", "clippy"]