]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop unenforced bound in trait alias
authorElias Rohrer <dev@tnull.de>
Sat, 16 Dec 2023 13:15:21 +0000 (14:15 +0100)
committerElias Rohrer <dev@tnull.de>
Mon, 18 Dec 2023 07:53:28 +0000 (08:53 +0100)
... to fix:
```
  error: bounds on generic parameters are not enforced in type aliases
   --> lightning/src/onion_message/messenger.rs:267:33
```

lightning/src/onion_message/messenger.rs

index e18431caa8d0e5c1e2ce90088ef8da5391b09f6c..a8ffcc02466f5afa918bf299e7a41572d24b72fc 100644 (file)
@@ -264,7 +264,7 @@ pub struct PendingOnionMessage<T: OnionMessageContents> {
 ///
 /// These are obtained when released from [`OnionMessenger`]'s handlers after which they are
 /// enqueued for sending.
-pub type PendingOnionMessage<T: OnionMessageContents> = (T, Destination, Option<BlindedPath>);
+pub type PendingOnionMessage<T> = (T, Destination, Option<BlindedPath>);
 
 pub(crate) fn new_pending_onion_message<T: OnionMessageContents>(
        contents: T, destination: Destination, reply_path: Option<BlindedPath>