From: Elias Rohrer Date: Tue, 12 Sep 2023 11:44:41 +0000 (+0200) Subject: Fix unused variable warning in `monitor_tests` X-Git-Tag: v0.0.117-alpha1~12^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=190867c37337f0efa37c208ea1a0abc5f9f87119;p=rust-lightning Fix unused variable warning in `monitor_tests` --- diff --git a/lightning/src/ln/monitor_tests.rs b/lightning/src/ln/monitor_tests.rs index 4af0f41be..ece24794f 100644 --- a/lightning/src/ln/monitor_tests.rs +++ b/lightning/src/ln/monitor_tests.rs @@ -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()));