Merge rust-bitcoin/rust-bitcoin#3451: Remove unnecessary lifetime

afa4e1ed56 Remove unnecessary lifetime (Tobin C. Harding)

Pull request description:

  Found by `rustc` after update to recent nightly version to `nightly-2024-10-06`.

ACKs for top commit:
  apoelstra:
    ACK afa4e1ed56 successfully ran local tests
  storopoli:
    ACK afa4e1ed56

Tree-SHA512: a4b592f243d7f63c6abe12acfb872068f309af4a6ee130cc3a454235b1d2a5f2ef9219ee64927aa39cff978535b1b0944a4e19d1c8e30d00e390e982ea4b3574
This commit is contained in:
merge-script 2024-10-10 17:07:44 +00:00
commit aa66992827
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
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)
}