mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Remove some excess mut's 1.22 complains about
This commit is contained in:
parent
c26967348d
commit
d5e316f5a0
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -388,7 +388,7 @@ impl ChannelManager {
|
|||
let mut chan = {
|
||||
let mut channel_state_lock = self.channel_state.lock().unwrap();
|
||||
let channel_state = channel_state_lock.borrow_parts();
|
||||
if let Some(mut chan) = channel_state.by_id.remove(channel_id) {
|
||||
if let Some(chan) = channel_state.by_id.remove(channel_id) {
|
||||
if let Some(short_id) = chan.get_short_channel_id() {
|
||||
channel_state.short_to_id.remove(&short_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue