From: Matt Corallo Date: Thu, 26 Jul 2018 18:58:59 +0000 (-0400) Subject: Remove excess mut warned on in 1.22 X-Git-Tag: v0.0.12~362^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2F2018-07-announce-bug;p=rust-lightning Remove excess mut warned on in 1.22 --- diff --git a/src/ln/router.rs b/src/ln/router.rs index bbd9cdada..23360d74b 100644 --- a/src/ln/router.rs +++ b/src/ln/router.rs @@ -433,7 +433,7 @@ impl Router { ($directional_info.fee_base_msat as u64).checked_add(part / 1000000) }) { let mut total_fee = $starting_fee_msat as u64; - let mut hm_entry = dist.entry(&$directional_info.src_node_id); + let hm_entry = dist.entry(&$directional_info.src_node_id); let old_entry = hm_entry.or_insert_with(|| { let node = network.nodes.get(&$directional_info.src_node_id).unwrap(); (u64::max_value(),