Skip to content

Commit 6ba9f2e

Browse files
committed
Drop unenforced bound in trait alias
... to fix: ``` error: bounds on generic parameters are not enforced in type aliases --> lightning/src/onion_message/messenger.rs:267:33 ```
1 parent dc1e493 commit 6ba9f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/onion_message/messenger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub struct PendingOnionMessage<T: OnionMessageContents> {
264264
///
265265
/// These are obtained when released from [`OnionMessenger`]'s handlers after which they are
266266
/// enqueued for sending.
267-
pub type PendingOnionMessage<T: OnionMessageContents> = (T, Destination, Option<BlindedPath>);
267+
pub type PendingOnionMessage<T> = (T, Destination, Option<BlindedPath>);
268268

269269
pub(crate) fn new_pending_onion_message<T: OnionMessageContents>(
270270
contents: T, destination: Destination, reply_path: Option<BlindedPath>

0 commit comments

Comments
 (0)