InMemAccountsIndex iter returns vec<owned> (#19778)

This commit is contained in:
Jeff Washington (jwash)
2021-09-11 15:33:04 -05:00
committed by GitHub
parent 7de2236284
commit 91c3b18e1e
3 changed files with 7 additions and 7 deletions

View File

@@ -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 {