Remove unnecessary lifetime

Found by rustc, after update to recent nightly version to
`nightly-2024-10-06`.
This commit is contained in:
Tobin C. Harding 2024-10-10 10:14:34 +11:00
parent 78bcca71ca
commit afa4e1ed56
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -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<T: fmt::Display + ?Sized> fmt::Display for CannotParse<'_, T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
storage::cannot_parse(&self.input.0, &self.what, f)
}