We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba56f3c commit dbb7be0Copy full SHA for dbb7be0
lightning/src/blinded_path/mod.rs
@@ -306,7 +306,7 @@ impl_writeable!(BlindedHop, {
306
307
impl Direction {
308
/// Returns the [`NodeId`] from the inputs corresponding to the direction.
309
- pub fn select_node_id<'a>(&self, node_a: &'a NodeId, node_b: &'a NodeId) -> &'a NodeId {
+ pub fn select_node_id(&self, node_a: NodeId, node_b: NodeId) -> NodeId {
310
match self {
311
Direction::NodeOne => core::cmp::min(node_a, node_b),
312
Direction::NodeTwo => core::cmp::max(node_a, node_b),
0 commit comments