projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tag some type aliases with `(C-not exported)`
[rust-lightning]
/
lightning
/
src
/
routing
/
network_graph.rs
diff --git
a/lightning/src/routing/network_graph.rs
b/lightning/src/routing/network_graph.rs
index ee310830afa93ee8e4bc55cccba603cf26897ac2..c1fb3d0097a2c73afc9855ee75ba06ee3f074957 100644
(file)
--- a/
lightning/src/routing/network_graph.rs
+++ b/
lightning/src/routing/network_graph.rs
@@
-662,7
+662,7
@@
pub struct ChannelInfo {
impl ChannelInfo {
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
impl ChannelInfo {
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
- pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
+ pub
(crate)
fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
let (direction, source) = {
if target == &self.node_one {
(self.two_to_one.as_ref(), &self.node_two)
let (direction, source) = {
if target == &self.node_one {
(self.two_to_one.as_ref(), &self.node_two)
@@
-2687,7
+2687,7
@@
mod tests {
}
}
}
}
-#[cfg(all(test, feature = "unstable"))]
+#[cfg(all(test, feature = "
_bench_
unstable"))]
mod benches {
use super::*;
mod benches {
use super::*;