From f10e3b152485c0310428c247ee635480e924dde9 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sat, 30 Nov 2024 15:05:10 -0500 Subject: [PATCH] fix: eliminate needless lifetimes Signed-off-by: Rui Chen --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 41672f39..050610d1 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() } }