Skip to content

Commit

Permalink
Merge pull request #524 from chenrui333/rust-1.83.0
Browse files Browse the repository at this point in the history
fix: eliminate needless lifetimes
  • Loading branch information
stepchowfun authored Nov 30, 2024
2 parents 0e0243a + c965854 commit dc42a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/failure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl fmt::Display for Failure {
}

impl error::Error for Failure {
fn source<'a>(&'a self) -> Option<&'a (dyn error::Error + 'static)> {
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match self {
Self::System(_, source) => source.as_ref().map(|e| &**e),
Self::User(_, source) => source.as_ref().map(|e| &**e),
Expand Down

0 comments on commit dc42a95

Please sign in to comment.