From 28e2480c6e91297327333bd99926cbe56560f083 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Dec 2018 17:28:09 -0500 Subject: [PATCH] Drop needless mut found by rustc 1.22 --- src/ln/functional_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ln/functional_tests.rs b/src/ln/functional_tests.rs index b62bd0b67..b83b9d6fa 100644 --- a/src/ln/functional_tests.rs +++ b/src/ln/functional_tests.rs @@ -6327,7 +6327,7 @@ fn test_onion_failure() { }, || {}, true, Some(17), None); run_onion_failure_test("final_incorrect_cltv_expiry", 1, &nodes, &route, &payment_hash, |_| {}, || { - for (_, mut pending_forwards) in nodes[1].node.channel_state.lock().unwrap().borrow_parts().forward_htlcs.iter_mut() { + for (_, pending_forwards) in nodes[1].node.channel_state.lock().unwrap().borrow_parts().forward_htlcs.iter_mut() { for f in pending_forwards.iter_mut() { f.forward_info.outgoing_cltv_value += 1; } @@ -6336,7 +6336,7 @@ fn test_onion_failure() { run_onion_failure_test("final_incorrect_htlc_amount", 1, &nodes, &route, &payment_hash, |_| {}, || { // violate amt_to_forward > msg.amount_msat - for (_, mut pending_forwards) in nodes[1].node.channel_state.lock().unwrap().borrow_parts().forward_htlcs.iter_mut() { + for (_, pending_forwards) in nodes[1].node.channel_state.lock().unwrap().borrow_parts().forward_htlcs.iter_mut() { for f in pending_forwards.iter_mut() { f.forward_info.amt_to_forward -= 1; } -- 2.39.5