Skip to content

Commit 128685e

Browse files
committed
Restrict ChannelInfo::as_directed_from visibility
Bindings can't handle references in return types, so reduce the visibility to pub(crate).
1 parent ee8defb commit 128685e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/network_graph.rs

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

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

0 commit comments

Comments
 (0)