Merge rust-bitcoin/rust-bitcoin#3514: Remove unnecessary lifetimes

b22db6268c Remove unnecessary lifetimes (Jamil Lambert, PhD)

Pull request description:

  New lint warnings from a recent nightly toolchain in #3467 show some explicit lifetimes that can be omitted.

  The unnecessary lifetimes have been removed.

ACKs for top commit:
  storopoli:
    ACK b22db6268c
  apoelstra:
    ACK b22db6268c609af5bc739168de4fde4a6e82fc43; successfully ran local tests; will one-ACK merge

Tree-SHA512: fa7057a3f2d8d84dfc21baf9784773fa331d808ed7e5153847fba455bf18d1daa1e95661e887fad74e21c953dc01655da6c2797e1fc0d4f546e4852ef1d99ad0
This commit is contained in:
merge-script 2024-10-24 18:21:42 +00:00
commit 856503ddc1
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ pub mod serde_details {
fn default() -> Self { Self(PhantomData) }
}
impl<'de, ValueT> de::Visitor<'de> for HexVisitor<ValueT>
impl<ValueT> de::Visitor<'_> for HexVisitor<ValueT>
where
ValueT: FromStr,
<ValueT as FromStr>::Err: fmt::Display,
@ -55,7 +55,7 @@ pub mod serde_details {
fn default() -> Self { Self(PhantomData) }
}
impl<'de, ValueT, const N: usize> de::Visitor<'de> for BytesVisitor<ValueT, N>
impl<ValueT, const N: usize> de::Visitor<'_> for BytesVisitor<ValueT, N>
where
ValueT: crate::Hash,
ValueT: crate::Hash<Bytes = [u8; N]>,