Remove some excess mut's 1.22 complains about

This commit is contained in:
Matt Corallo 2018-07-29 13:29:36 -04:00
parent c26967348d
commit d5e316f5a0
2 changed files with 2 additions and 2 deletions

View 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;

View file

@ -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);
}