]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unnecessary mut introduced in 0c595a7ff69bd177b2e7fa8c1b361 2020-02-461-extra-mut
authorMatt Corallo <git@bluematt.me>
Wed, 12 Feb 2020 18:00:43 +0000 (13:00 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 12 Feb 2020 18:03:41 +0000 (13:03 -0500)
lightning/src/ln/channelmonitor.rs

index 7d843506e10d4810726bdc3ec20f415d006275cd..a1577712fdd8e2196529535fa912c3432c46aebd 100644 (file)
@@ -1832,7 +1832,7 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
                                                        }
                                                        if let Some(payment_preimage) = self.payment_preimages.get(&htlc.payment_hash) {
                                                                if htlc.offered {
-                                                                       let mut input = TxIn {
+                                                                       let input = TxIn {
                                                                                previous_output: BitcoinOutPoint {
                                                                                        txid: commitment_txid,
                                                                                        vout: transaction_output_index,