Skip to content

Commit ce8237a

Browse files
committed
Drop redundant generic bounds when the trait requires the bounds
1 parent e82318d commit ce8237a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
470470
CM::Target: ChannelMessageHandler,
471471
RM::Target: RoutingMessageHandler,
472472
L::Target: Logger,
473-
CMH::Target: CustomMessageHandler + wire::CustomMessageReader {
473+
CMH::Target: CustomMessageHandler {
474474
/// Constructs a new PeerManager with the given message handlers and node_id secret key
475475
/// ephemeral_random_data is used to derive per-connection ephemeral keys and must be
476476
/// cryptographically secure random bytes.
@@ -720,7 +720,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref, CMH: Deref> P
720720
}
721721

722722
/// Append a message to a peer's pending outbound/write buffer, and update the map of peers needing sends accordingly.
723-
fn enqueue_message<M: wire::Type + Writeable + Debug>(&self, peer: &mut Peer, message: &M) {
723+
fn enqueue_message<M: wire::Type>(&self, peer: &mut Peer, message: &M) {
724724
let mut buffer = VecWriter(Vec::with_capacity(2048));
725725
wire::write(message, &mut buffer).unwrap(); // crash if the write failed
726726
let encoded_message = buffer.0;

0 commit comments

Comments
 (0)