From: Matt Corallo Date: Fri, 23 Mar 2018 17:21:19 +0000 (-0400) Subject: Fix new "uneccessary mut" warning X-Git-Tag: v0.0.12~416^2~9 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=397b6f90e1f617093a266975d021466734054118;p=rust-lightning Fix new "uneccessary mut" warning --- diff --git a/src/ln/channelmanager.rs b/src/ln/channelmanager.rs index 0dddfdac6..c22d9a07c 100644 --- a/src/ln/channelmanager.rs +++ b/src/ln/channelmanager.rs @@ -1236,7 +1236,7 @@ impl ChannelMessageHandler for ChannelManager { match claimable_htlcs_entry { hash_map::Entry::Occupied(mut e) => { - let mut outbound_route = e.get_mut(); + let outbound_route = e.get_mut(); let route = match outbound_route { &mut PendingOutboundHTLC::OutboundRoute { ref route } => { route.clone()