From 231d87c47ee2aebcb1cb85aad261e1d762e83da0 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 9 Mar 2025 22:27:38 +0000 Subject: chore: update rust toolchain to 1.85 (#2618) * chore: update rust toolchain to 1.85 * nix things * make clippy happy I've replaced a bunch of &Option with Option. They were not in hot loops, so a single clone is really no big deal + keeps things simpler. * fmt --- crates/atuin-server/src/handlers/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/atuin-server/src') diff --git a/crates/atuin-server/src/handlers/mod.rs b/crates/atuin-server/src/handlers/mod.rs index 97132c07..a0d7ccc7 100644 --- a/crates/atuin-server/src/handlers/mod.rs +++ b/crates/atuin-server/src/handlers/mod.rs @@ -33,7 +33,7 @@ pub async fn index(state: State>) -> Json IntoResponse for ErrorResponseStatus<'a> { +impl IntoResponse for ErrorResponseStatus<'_> { fn into_response(self) -> axum::response::Response { (self.status, Json(self.error)).into_response() } @@ -57,7 +57,7 @@ impl<'a> RespExt<'a> for ErrorResponse<'a> { } } - fn reply(reason: &'a str) -> ErrorResponse { + fn reply(reason: &'a str) -> ErrorResponse<'a> { Self { reason: reason.into(), } -- cgit v1.3.1