Skip to content

Commit

Permalink
fix(util): remove lifetime that can be elided
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Jan 7, 2025
1 parent 5ac28e5 commit f0ae1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub trait IntoAppError {
fn into_app_err<T>(self) -> Result<T, AppError>;
}

impl<'a> IntoAppError for (StatusCode, &'a str) {
impl IntoAppError for (StatusCode, &str) {
fn into_app_err<T>(self) -> Result<T, AppError> {
Err(AppError::StatusCode(self.0, self.1.into()))
}
Expand Down

0 comments on commit f0ae1c0

Please sign in to comment.