From 6bd962bc51e57a6ddf2dcf0ec4042fec0ba4497f Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 29 Sep 2023 13:58:34 -0700 Subject: [PATCH] Remove an unnecessary enumerate --- lightning/src/ln/channelmanager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 5985e0c72..63692f0e5 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -3885,7 +3885,7 @@ where btree_map::Entry::Vacant(vacant) => Some(vacant.insert(Vec::new())), } }); - for (channel_idx, &(temporary_channel_id, counterparty_node_id)) in temporary_channels.iter().enumerate() { + for &(temporary_channel_id, counterparty_node_id) in temporary_channels.iter() { result = result.and_then(|_| self.funding_transaction_generated_intern( temporary_channel_id, counterparty_node_id, -- 2.39.5