Skip to content

Commit b007ae7

Browse files
jkczyzTheBlueMatt
authored andcommitted
Restrict ChannelInfo::as_directed_from visibility
Bindings can't handle references in return types, so reduce the visibility to pub(crate).
1 parent 57cb511 commit b007ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/gossip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ impl ChannelInfo {
727727

728728
/// Returns a [`DirectedChannelInfo`] for the channel directed from the given `source` to a
729729
/// returned `target`, or `None` if `source` is not one of the channel's counterparties.
730-
pub fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
730+
pub(crate) fn as_directed_from(&self, source: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
731731
let (direction, target) = {
732732
if source == &self.node_one {
733733
(self.one_to_two.as_ref(), &self.node_two)

0 commit comments

Comments
 (0)