From a7d9bcd749f2b3ce163398c4cc1dc413a528dbe0 Mon Sep 17 00:00:00 2001 From: jeff washington Date: Mon, 2 Jan 2023 16:28:18 -0600 Subject: [PATCH] remove unnecessary type --- runtime/src/account_info.rs | 2 +- runtime/src/accounts_db.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/account_info.rs b/runtime/src/account_info.rs index 2d858c6b5403b5..4024ac9262e00b 100644 --- a/runtime/src/account_info.rs +++ b/runtime/src/account_info.rs @@ -16,7 +16,7 @@ pub type Offset = usize; pub type StoredSize = u32; /// specify where account data is located -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum StorageLocation { AppendVec(AppendVecId, Offset), Cached, diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 02f28e571e1a85..e67064febb3002 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4894,7 +4894,7 @@ impl AccountsDb { // If the slot is not in the cache, then all the account information must have // been flushed. This is guaranteed because we only remove the rooted slot from // the cache *after* we've finished flushing in `flush_slot_cache`. - let storage_maps: SnapshotStorage = self + let storage_maps = self .storage .get_slot_storage_entries(slot) .unwrap_or_default(); @@ -8125,7 +8125,7 @@ impl AccountsDb { pubkeys_removed_from_accounts_index: &PubkeysRemovedFromAccountsIndex, ) { let mut measure = Measure::start("clean_stored_dead_slots-ms"); - let mut stores: SnapshotStorage = vec![]; + let mut stores = vec![]; // get all stores in a vec so we can iterate in parallel for slot in dead_slots.iter() { if let Some(slot_storage) = self.storage.get_slot_stores(*slot) { @@ -8873,7 +8873,7 @@ impl AccountsDb { .take(per_pass) .collect::>(); roots_in_this_pass.into_par_iter().for_each(|slot| { - let storage_maps: SnapshotStorage = self + let storage_maps = self .storage .get_slot_storage_entries(*slot) .unwrap_or_default();