From: Jeffrey Czyz Date: Thu, 8 Jun 2023 19:30:38 +0000 (-0500) Subject: Remove unnecessary Sized bound X-Git-Tag: v0.0.116-alpha1~11^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c83d5bf16225057c86fdab53d0b3333e7536ce56;p=rust-lightning Remove unnecessary Sized bound --- diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 7c2591139..655fb6e49 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -416,7 +416,7 @@ where L::Target: Logger, MR::Target: MessageRouter, OMH::Target: OffersMessageHandler, - CMH::Target: CustomOnionMessageHandler + Sized, + CMH::Target: CustomOnionMessageHandler, { /// Handle an incoming onion message. Currently, if a message was destined for us we will log, but /// soon we'll delegate the onion message to a handler that can generate invoices or send diff --git a/lightning/src/onion_message/packet.rs b/lightning/src/onion_message/packet.rs index 663a0b0cd..1c3595c37 100644 --- a/lightning/src/onion_message/packet.rs +++ b/lightning/src/onion_message/packet.rs @@ -203,7 +203,7 @@ impl Writeable for (Payload, [u8; 32]) { } // Uses the provided secret to simultaneously decode and decrypt the control TLVs and data TLV. -impl +impl ReadableArgs<(SharedSecret, &H, &L)> for Payload<::CustomMessage> { fn read(r: &mut R, args: (SharedSecret, &H, &L)) -> Result { let (encrypted_tlvs_ss, handler, logger) = args;