InMemAccountsIndex iter returns vec<owned> (#19778)
This commit is contained in:
committed by
GitHub
parent
7de2236284
commit
91c3b18e1e
@@ -640,9 +640,9 @@ impl<'a, T: IsCached> AccountsIndexIterator<'a, T> {
|
||||
R: RangeBounds<Pubkey>,
|
||||
{
|
||||
let mut result = Vec::with_capacity(map.len());
|
||||
for (k, v) in map.iter() {
|
||||
if range.contains(k) {
|
||||
result.push((*k, v.clone()));
|
||||
for (k, v) in map.items() {
|
||||
if range.contains(&k) {
|
||||
result.push((k, v));
|
||||
}
|
||||
}
|
||||
if !collect_all_unsorted {
|
||||
|
Reference in New Issue
Block a user