From: Matt Corallo Date: Sun, 11 Sep 2022 21:12:16 +0000 (+0000) Subject: Add relevant `(C-not exported)` tags on OnionMessenger aliases X-Git-Tag: v0.0.111~1^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=88ec5da4b33985396e0e748f91d046151b4ea161;p=rust-lightning Add relevant `(C-not exported)` tags on OnionMessenger aliases The "helpful" type aliases don't make sense for C bindings as all generics are concretized anyway. --- diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 2df01c2ba..4cda2a4c6 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -378,14 +378,18 @@ impl OnionMessageProvider for OnionMessenger = OnionMessenger, Arc>; /// Useful for simplifying the parameters of [`SimpleRefChannelManager`] and /// [`SimpleRefPeerManager`]. See their docs for more details. /// -///[`SimpleRefChannelManager`]: crate::ln::channelmanager::SimpleRefChannelManager -///[`SimpleRefPeerManager`]: crate::ln::peer_handler::SimpleRefPeerManager +/// (C-not exported) as general type aliases don't make sense in bindings. +/// +/// [`SimpleRefChannelManager`]: crate::ln::channelmanager::SimpleRefChannelManager +/// [`SimpleRefPeerManager`]: crate::ln::peer_handler::SimpleRefPeerManager pub type SimpleRefOnionMessenger<'a, 'b, L> = OnionMessenger; /// Construct onion packet payloads and keys for sending an onion message along the given