From 2df96cd81e66b12d7e2cc3333e02f268b4a7faa4 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Tue, 31 Aug 2021 20:03:42 -0500 Subject: [PATCH] remove type specifics to make funciton more flexible (#19536) --- runtime/src/accounts_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_index.rs b/runtime/src/accounts_index.rs index 2cc0aeb37..71840b604 100644 --- a/runtime/src/accounts_index.rs +++ b/runtime/src/accounts_index.rs @@ -718,7 +718,7 @@ impl<'a, T: IsCached> Iterator for AccountsIndexIterator<'a, T> { return None; } let (start_bin, bin_range) = self.bin_start_and_range(); - let mut chunk: Vec<(Pubkey, AccountMapEntry)> = Vec::with_capacity(ITER_BATCH_SIZE); + let mut chunk = Vec::with_capacity(ITER_BATCH_SIZE); 'outer: for i in self.account_maps.iter().skip(start_bin).take(bin_range) { for (pubkey, account_map_entry) in Self::range( &i.read().unwrap(),