From: Matt Corallo Date: Wed, 19 Dec 2018 22:28:09 +0000 (-0500) Subject: Drop needless mut found by rustc 1.22 X-Git-Tag: v0.0.12~252^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=refs%2Fheads%2F2018-12-manager-split;p=rust-lightning Drop needless mut found by rustc 1.22 --- 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; }