From afa4e1ed564b94922c0b47d5f9c6e575dbe36f10 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 10 Oct 2024 10:14:34 +1100 Subject: [PATCH] Remove unnecessary lifetime Found by rustc, after update to recent nightly version to `nightly-2024-10-06`. --- internals/src/error/input_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internals/src/error/input_string.rs b/internals/src/error/input_string.rs index 2949d17df..817d20e43 100644 --- a/internals/src/error/input_string.rs +++ b/internals/src/error/input_string.rs @@ -102,7 +102,7 @@ pub struct CannotParse<'a, T: fmt::Display + ?Sized> { what: &'a T, } -impl<'a, T: fmt::Display + ?Sized> fmt::Display for CannotParse<'a, T> { +impl fmt::Display for CannotParse<'_, T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { storage::cannot_parse(&self.input.0, &self.what, f) }