aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-server/src/handlers
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2025-03-09 22:27:38 +0000
committerGitHub <noreply@github.com>2025-03-09 22:27:38 +0000
commit231d87c47ee2aebcb1cb85aad261e1d762e83da0 (patch)
treeb64046391f7cc43fa8f4d767061e208421b1c198 /crates/atuin-server/src/handlers
parentfix: don't save empty commands (#2605) (diff)
downloadatuin-231d87c47ee2aebcb1cb85aad261e1d762e83da0.zip
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<String> with Option<String>. They were not in hot loops, so a single clone is really no big deal + keeps things simpler. * fmt
Diffstat (limited to 'crates/atuin-server/src/handlers')
-rw-r--r--crates/atuin-server/src/handlers/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<DB: Database>(state: State<AppState<DB>>) -> Json<IndexRespon
})
}
-impl<'a> 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(),
}