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

ddde3162ff Remove unnecessary lifetimes (Tobin C. Harding)

Pull request description:

  Linter with new nightly toolchain finds another lifetime that can be elided, do so.

ACKs for top commit:
  storopoli:
    ACK ddde3162ff
  apoelstra:
    ACK ddde3162ff8417531920aa16e12d7ac73bc5207d; successfully ran local tests; not bad, just one

Tree-SHA512: cc7fde0f586ba0ca7435933a80d0409b9220df0e65d7b71b89a691dbbfaea19117cae65dc1ea61784640a77a62f0794c6c3e65bca203a62ca55731eb5d1a9fd4
This commit is contained in:
merge-script 2024-10-23 22:50:19 +00:00
commit dc443e5b3d
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ macro_rules! serde_round_trip (
/// Serializes a byte slice using the `hex` crate.
pub struct SerializeBytesAsHex<'a>(pub &'a [u8]);
impl<'a> serde::Serialize for SerializeBytesAsHex<'a> {
impl serde::Serialize for SerializeBytesAsHex<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,