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: ACKddde3162ff
apoelstra: ACK ddde3162ff8417531920aa16e12d7ac73bc5207d; successfully ran local tests; not bad, just one Tree-SHA512: cc7fde0f586ba0ca7435933a80d0409b9220df0e65d7b71b89a691dbbfaea19117cae65dc1ea61784640a77a62f0794c6c3e65bca203a62ca55731eb5d1a9fd4
This commit is contained in:
commit
dc443e5b3d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue