From: Matt Corallo Date: Wed, 6 Dec 2023 17:17:27 +0000 (+0000) Subject: Fix new unused warnings in `scoring.rs` X-Git-Tag: v0.0.119~18^2~9 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=fc44e84ca8a6a5bc70e3808e9657d90e20fa3c57;p=rust-lightning Fix new unused warnings in `scoring.rs` --- 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,