]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop needless mut found by rustc 1.22 2018-12-manager-split
authorMatt Corallo <git@bluematt.me>
Wed, 19 Dec 2018 22:28:09 +0000 (17:28 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Dec 2018 19:32:02 +0000 (14:32 -0500)
src/ln/functional_tests.rs

index b62bd0b6726f8fe93c7b6f1f41b3743743e682d5..b83b9d6fab635f708e4bc82f257f4e0accc8094d 100644 (file)
@@ -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;
                        }