From: Jeffrey Czyz Date: Fri, 29 Sep 2023 20:58:34 +0000 (-0700) Subject: Remove an unnecessary enumerate X-Git-Tag: v0.0.117-rc1~3^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6bd962bc51e57a6ddf2dcf0ec4042fec0ba4497f;p=rust-lightning Remove an unnecessary enumerate --- 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,