From 3f2aee06a8cba395b684163f6f1e4d12b576f034 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 3 Jan 2023 08:34:05 -0600 Subject: [PATCH] remove unnecessary type (#29473) --- 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 c5ee2442e1cd61..91bb4f5f43b0d9 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -4882,7 +4882,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(); @@ -8113,7 +8113,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) { @@ -8861,7 +8861,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();