Skip to content

Commit

Permalink
fix: eliminate needless lifetimes
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Nov 30, 2024
1 parent 42834a3 commit f10e3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl fmt::Display for Error {
}

impl error::Error for Error {
fn source<'a>(&'a self) -> Option<&'a (dyn error::Error + 'static)> {
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
self.reason.as_deref()
}
}
Expand Down

0 comments on commit f10e3b1

Please sign in to comment.