Skip to content

Commit ca664eb

Browse files
authored
Merge pull request #9400 from rust-lang/renovate/rust-1.x
Update Rust to v1.81.0
2 parents 53f8ac5 + db45026 commit ca664eb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust
2-
ARG RUST_VERSION=1.80.1
2+
ARG RUST_VERSION=1.81.0
33

44
FROM rust:$RUST_VERSION
55

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.80.1"
2+
channel = "1.81.0"

src/controllers/github/secret_scanning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ async fn verify_github_signature(
9898
.find(|key| key.key_identifier == req_key_id);
9999

100100
let Some(key) = key else {
101-
return Err(bad_request(&format!("unknown key id {req_key_id}")));
101+
return Err(bad_request(format!("unknown key id {req_key_id}")));
102102
};
103103

104104
if !key.is_current {
105-
let error = bad_request(&format!("key id {req_key_id} is not a current key"));
105+
let error = bad_request(format!("key id {req_key_id} is not a current key"));
106106
return Err(error);
107107
}
108108

src/controllers/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub async fn new(app: AppState, req: BytesRequest) -> AppResult<Json<Value>> {
107107
let max_token_per_user = 500;
108108
let count: i64 = ApiToken::belonging_to(user).count().get_result(conn)?;
109109
if count >= max_token_per_user {
110-
return Err(bad_request(&format!(
110+
return Err(bad_request(format!(
111111
"maximum tokens per user is: {max_token_per_user}"
112112
)));
113113
}

0 commit comments

Comments
 (0)