From: Matt Corallo Date: Mon, 11 Feb 2019 17:07:37 +0000 (-0500) Subject: Fix uneccessary mut found by 1.22 X-Git-Tag: v0.0.12~228^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2F2019-02-306-nits;p=rust-lightning Fix uneccessary mut found by 1.22 --- 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);