Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crates/knope/src/integrations/github/create_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion crates/knope/src/workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.96.1"
channel = "1.97.0"
components = ["rustfmt", "clippy"]
Loading