remove unnecessary namespaces (#23646)

This commit is contained in:
Jeff Washington (jwash)
2022-03-14 12:28:55 -05:00
committed by GitHub
parent c369f8b871
commit a3242b6b86

View File

@ -6692,14 +6692,14 @@ impl AccountsDb {
let pubkey = stored_account.meta.pubkey; let pubkey = stored_account.meta.pubkey;
assert!(!self.is_filler_account(&pubkey)); assert!(!self.is_filler_account(&pubkey));
match accounts_map.entry(pubkey) { match accounts_map.entry(pubkey) {
std::collections::hash_map::Entry::Vacant(entry) => { Entry::Vacant(entry) => {
entry.insert(IndexAccountMapEntry { entry.insert(IndexAccountMapEntry {
write_version: this_version, write_version: this_version,
store_id: storage.append_vec_id(), store_id: storage.append_vec_id(),
stored_account, stored_account,
}); });
} }
std::collections::hash_map::Entry::Occupied(mut entry) => { Entry::Occupied(mut entry) => {
let occupied_version = entry.get().write_version; let occupied_version = entry.get().write_version;
if occupied_version < this_version { if occupied_version < this_version {
entry.insert(IndexAccountMapEntry { entry.insert(IndexAccountMapEntry {