]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove excess mut warned on in 1.22 2018-07-announce-bug
authorMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 18:58:59 +0000 (14:58 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 19:11:36 +0000 (15:11 -0400)
src/ln/router.rs

index bbd9cdadaf33279617b3173e383c220cbea2c800..23360d74b62e8a304b8203e454dc9bc52a0b1831 100644 (file)
@@ -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(),