From e354dc28bcf7d9e79cf588d942a5ddc9f781e048 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 11 Feb 2019 12:07:37 -0500 Subject: [PATCH] Fix uneccessary mut found by 1.22 --- src/ln/functional_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ln/functional_tests.rs b/src/ln/functional_tests.rs index fdb07e903..58c8cd629 100644 --- a/src/ln/functional_tests.rs +++ b/src/ln/functional_tests.rs @@ -4806,7 +4806,7 @@ fn test_update_add_htlc_bolt2_sender_exceed_max_htlc_num_and_htlc_id_increment() for i in 0..max_accepted_htlcs { let route = nodes[0].router.get_route(&nodes[1].node.get_our_node_id(), None, &[], 100000, TEST_FINAL_CLTV).unwrap(); let (_, our_payment_hash) = get_payment_preimage_hash!(nodes[0]); - let mut payment_event = { + let payment_event = { nodes[0].node.send_payment(route, our_payment_hash).unwrap(); check_added_monitors!(nodes[0], 1); -- 2.39.5