Remove some excess mut's 1.22 complains about
[rust-lightning] / src / ln / channel.rs
index fc67085250a3e1f429d53dcffa06f7ff3455a0d9..6fdc1462a419b2885c8a125986d64cfde94d86a7 100644 (file)
@@ -985,7 +985,7 @@ impl Channel {
                }
 
                let htlc_id = {
-                       let mut htlc = &mut self.pending_htlcs[pending_idx];
+                       let htlc = &mut self.pending_htlcs[pending_idx];
                        if htlc.state == HTLCState::Committed {
                                htlc.state = HTLCState::LocalRemoved;
                                htlc.local_removed_fulfilled = true;