]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build warning
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 21:11:51 +0000 (15:11 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 21:40:10 +0000 (15:40 -0600)
lightning/src/routing/scoring.rs

index 12ffdecec429cdbd6809107215e2bc488d94a568..6ace8681ac025a08423bff54c4dae67b829fab5f 100644 (file)
@@ -3442,7 +3442,7 @@ mod tests {
                        Some(([0; 32], [0; 32])));
                assert_eq!(scorer.historical_estimated_payment_success_probability(42, &target, 1, &params), 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 },