]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix unused variable warning in `monitor_tests`
authorElias Rohrer <dev@tnull.de>
Tue, 12 Sep 2023 11:44:41 +0000 (13:44 +0200)
committerElias Rohrer <dev@tnull.de>
Thu, 14 Sep 2023 07:09:27 +0000 (09:09 +0200)
lightning/src/ln/monitor_tests.rs

index 4af0f41becfc312c69f84c5eecc8a6a27575e35b..ece24794f63f593ecba133660fa73a466fc547a7 100644 (file)
@@ -2231,7 +2231,7 @@ fn test_anchors_aggregated_revoked_htlc_tx() {
        assert!(nodes[1].chain_monitor.chain_monitor.get_and_clear_pending_events().is_empty());
        let spendable_output_events = nodes[0].chain_monitor.chain_monitor.get_and_clear_pending_events();
        assert_eq!(spendable_output_events.len(), 2);
-       for (idx, event) in spendable_output_events.iter().enumerate() {
+       for event in spendable_output_events.iter() {
                if let Event::SpendableOutputs { outputs, channel_id } = event {
                        assert_eq!(outputs.len(), 1);
                        assert!(vec![chan_b.2, chan_a.2].contains(&channel_id.unwrap()));