From 78023d6fa14fc4f18c48fb2cbf9101ec9d591966 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 26 Jul 2018 14:58:59 -0400 Subject: [PATCH] Remove excess mut warned on in 1.22 --- src/ln/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.39.5