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..1a13db3690f787 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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();