From: Jeffrey Czyz Date: Fri, 15 Dec 2023 21:11:51 +0000 (-0600) Subject: Fix build warning X-Git-Tag: v0.0.119~3^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=37319a6193b6dbeb1570a29dc3ed667148095471;p=rust-lightning Fix build warning --- diff --git a/lightning/src/routing/scoring.rs b/lightning/src/routing/scoring.rs index 12ffdecec..6ace8681a 100644 --- a/lightning/src/routing/scoring.rs +++ b/lightning/src/routing/scoring.rs @@ -3442,7 +3442,7 @@ mod tests { Some(([0; 32], [0; 32]))); assert_eq!(scorer.historical_estimated_payment_success_probability(42, &target, 1, ¶ms), None); - let mut usage = ChannelUsage { + let usage = ChannelUsage { amount_msat: 100, inflight_htlc_msat: 1024, effective_capacity: EffectiveCapacity::Total { capacity_msat: 1_024, htlc_maximum_msat: 1_024 },