From: Matt Corallo Date: Fri, 15 Nov 2019 22:19:46 +0000 (-0500) Subject: Drop needless mut X-Git-Tag: v0.0.12~180^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f08383edcee6b673e41ccde79dd38891b4224bec;p=rust-lightning Drop needless mut --- diff --git a/src/ln/channelmonitor.rs b/src/ln/channelmonitor.rs index 9deb11073..a31c5bc50 100644 --- a/src/ln/channelmonitor.rs +++ b/src/ln/channelmonitor.rs @@ -1740,7 +1740,7 @@ impl ChannelMonitor { output: outputs, }; - let mut predicted_weight = spend_tx.get_weight() + Self::get_witnesses_weight(&inputs_desc[..]); + let predicted_weight = spend_tx.get_weight() + Self::get_witnesses_weight(&inputs_desc[..]); let mut used_feerate; if !subtract_high_prio_fee!(self, fee_estimator, spend_tx.output[0].value, predicted_weight, tx.txid(), used_feerate) {