Skip to content

Update Rust to v1.81.0 #9400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 5, 2024
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
2 changes: 1 addition & 1 deletion backend.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.80.1"
channel = "1.81.0"
4 changes: 2 additions & 2 deletions src/controllers/github/secret_scanning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub async fn new(app: AppState, req: BytesRequest) -> AppResult<Json<Value>> {
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}"
)));
}
Expand Down
Loading