accounts index get returns value (#19777)

This commit is contained in:
Jeff Washington (jwash)
2021-09-11 13:28:56 -05:00
committed by GitHub
parent 999ba9e026
commit 7de2236284
2 changed files with 4 additions and 6 deletions

View File

@@ -34,8 +34,8 @@ impl<V: IsCached> InMemAccountsIndex<V> {
self.map.keys()
}
pub fn get(&self, key: &K) -> Option<&AccountMapEntry<V>> {
self.map.get(key)
pub fn get(&self, key: &K) -> Option<AccountMapEntry<V>> {
self.map.get(key).cloned()
}
pub fn remove(&mut self, key: &K) {