diff --git a/backend.Dockerfile b/backend.Dockerfile index ce4c8d8d337..51147f9dc57 100644 --- a/backend.Dockerfile +++ b/backend.Dockerfile @@ -1,5 +1,5 @@ # renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust -ARG RUST_VERSION=1.80.1 +ARG RUST_VERSION=1.81.0 FROM rust:$RUST_VERSION diff --git a/rust-toolchain.toml b/rust-toolchain.toml index a56a283d2ab..1de01fa45c4 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.80.1" +channel = "1.81.0" diff --git a/src/controllers/github/secret_scanning.rs b/src/controllers/github/secret_scanning.rs index 52fdc4b7349..48474331d04 100644 --- a/src/controllers/github/secret_scanning.rs +++ b/src/controllers/github/secret_scanning.rs @@ -98,11 +98,11 @@ async fn verify_github_signature( .find(|key| key.key_identifier == req_key_id); let Some(key) = key else { - return Err(bad_request(&format!("unknown key id {req_key_id}"))); + return Err(bad_request(format!("unknown key id {req_key_id}"))); }; if !key.is_current { - let error = bad_request(&format!("key id {req_key_id} is not a current key")); + let error = bad_request(format!("key id {req_key_id} is not a current key")); return Err(error); } diff --git a/src/controllers/token.rs b/src/controllers/token.rs index db5e5911983..08646dece47 100644 --- a/src/controllers/token.rs +++ b/src/controllers/token.rs @@ -107,7 +107,7 @@ pub async fn new(app: AppState, req: BytesRequest) -> AppResult> { let max_token_per_user = 500; let count: i64 = ApiToken::belonging_to(user).count().get_result(conn)?; if count >= max_token_per_user { - return Err(bad_request(&format!( + return Err(bad_request(format!( "maximum tokens per user is: {max_token_per_user}" ))); }