From afa455e6ce5b618043d47d915949d0682fb5648c Mon Sep 17 00:00:00 2001 From: Stephan Boyer Date: Sat, 30 Nov 2024 13:21:56 -0800 Subject: [PATCH] Eliminate needless lifetimes --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 554a8a5..1a7ce6a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -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() } }