Skip to content

Commit fc44e84

Browse files
committed
Fix new unused warnings in scoring.rs
1 parent 99e4a1f commit fc44e84

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,10 +2242,6 @@ mod tests {
22422242
PublicKey::from_secret_key(&secp_ctx, &recipient_privkey())
22432243
}
22442244

2245-
fn sender_node_id() -> NodeId {
2246-
NodeId::from_pubkey(&sender_pubkey())
2247-
}
2248-
22492245
fn recipient_node_id() -> NodeId {
22502246
NodeId::from_pubkey(&recipient_pubkey())
22512247
}
@@ -2900,7 +2896,7 @@ mod tests {
29002896
effective_capacity: EffectiveCapacity::Total { capacity_msat: 1_024, htlc_maximum_msat: 1_024 },
29012897
};
29022898
let channel = network_graph.read_only().channel(42).unwrap().to_owned();
2903-
let (info, target) = channel.as_directed_from(&source).unwrap();
2899+
let (info, _) = channel.as_directed_from(&source).unwrap();
29042900
let candidate = CandidateRouteHop::PublicHop {
29052901
info,
29062902
short_channel_id: 42,
@@ -3000,7 +2996,7 @@ mod tests {
30002996
effective_capacity: EffectiveCapacity::Total { capacity_msat: 1_024, htlc_maximum_msat: 1_000 },
30012997
};
30022998
let channel = network_graph.read_only().channel(42).unwrap().to_owned();
3003-
let (info, target) = channel.as_directed_from(&source).unwrap();
2999+
let (info, _) = channel.as_directed_from(&source).unwrap();
30043000
let candidate = CandidateRouteHop::PublicHop {
30053001
info,
30063002
short_channel_id: 42,

0 commit comments

Comments
 (0)