]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove an unnecessary enumerate
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 29 Sep 2023 20:58:34 +0000 (13:58 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 29 Sep 2023 22:03:23 +0000 (15:03 -0700)
lightning/src/ln/channelmanager.rs

index 5985e0c722785cc902129b1ac1b2877d838a516e..63692f0e5e352a62bcdcedbc85e99670d023d5b6 100644 (file)
@@ -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,