Fix new "uneccessary mut" warning
authorMatt Corallo <git@bluematt.me>
Fri, 23 Mar 2018 17:21:19 +0000 (13:21 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Mar 2018 19:30:18 +0000 (15:30 -0400)
src/ln/channelmanager.rs

index 0dddfdac6760c473b5e0efabc864eb7dc062b550..c22d9a07c991e936f98ee186e0e45b64376ea24f 100644 (file)
@@ -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()