From 1106efacb878b685a3fffca670f40d9b71e19a68 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 14:48:28 +0000 Subject: [PATCH 1/2] chore(deps): update rust to v1.97.0 --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index ea14c7ed..2c202d45 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"] From 7b865024f313dab3d26118da364945d21e16f923 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Jul 2026 15:13:36 +0000 Subject: [PATCH 2/2] fix: satisfy rust 1.97 clippy lints --- crates/knope/src/integrations/github/create_pull_request.rs | 2 +- crates/knope/src/integrations/github/create_release.rs | 2 +- crates/knope/src/workflow.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/knope/src/integrations/github/create_pull_request.rs b/crates/knope/src/integrations/github/create_pull_request.rs index 8cb54c5a..161e3f0b 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 593ebead..b5b0bce7 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 ea8835d6..b6902866 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) } }