From f0ae1c0809729616eb3a4a62f01b22020b593d48 Mon Sep 17 00:00:00 2001 From: uku Date: Tue, 7 Jan 2025 09:31:40 +0100 Subject: [PATCH] fix(util): remove lifetime that can be elided --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 806abf8..9df77c9 100644 --- a/src/util.rs +++ b/src/util.rs @@ -40,7 +40,7 @@ pub trait IntoAppError { fn into_app_err(self) -> Result; } -impl<'a> IntoAppError for (StatusCode, &'a str) { +impl IntoAppError for (StatusCode, &str) { fn into_app_err(self) -> Result { Err(AppError::StatusCode(self.0, self.1.into())) }