accounts index get returns value (#19777)
This commit is contained in:
committed by
GitHub
parent
999ba9e026
commit
7de2236284
@@ -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) {
|
||||
|
Reference in New Issue
Block a user