From fc44e84ca8a6a5bc70e3808e9657d90e20fa3c57 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 6 Dec 2023 17:17:27 +0000 Subject: [PATCH] Fix new unused warnings in `scoring.rs` --- lightning/src/routing/scoring.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lightning/src/routing/scoring.rs b/lightning/src/routing/scoring.rs index 80438de67..337fd8eec 100644 --- a/lightning/src/routing/scoring.rs +++ b/lightning/src/routing/scoring.rs @@ -2242,10 +2242,6 @@ mod tests { PublicKey::from_secret_key(&secp_ctx, &recipient_privkey()) } - fn sender_node_id() -> NodeId { - NodeId::from_pubkey(&sender_pubkey()) - } - fn recipient_node_id() -> NodeId { NodeId::from_pubkey(&recipient_pubkey()) } @@ -2900,7 +2896,7 @@ mod tests { effective_capacity: EffectiveCapacity::Total { capacity_msat: 1_024, htlc_maximum_msat: 1_024 }, }; let channel = network_graph.read_only().channel(42).unwrap().to_owned(); - let (info, target) = channel.as_directed_from(&source).unwrap(); + let (info, _) = channel.as_directed_from(&source).unwrap(); let candidate = CandidateRouteHop::PublicHop { info, short_channel_id: 42, @@ -3000,7 +2996,7 @@ mod tests { effective_capacity: EffectiveCapacity::Total { capacity_msat: 1_024, htlc_maximum_msat: 1_000 }, }; let channel = network_graph.read_only().channel(42).unwrap().to_owned(); - let (info, target) = channel.as_directed_from(&source).unwrap(); + let (info, _) = channel.as_directed_from(&source).unwrap(); let candidate = CandidateRouteHop::PublicHop { info, short_channel_id: 42, -- 2.39.5