Skip to content

Commit

Permalink
remove unnecessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Jan 2, 2023
1 parent d5fdb7b commit 09ebd43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/src/account_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -8873,7 +8873,7 @@ impl AccountsDb {
.take(per_pass)
.collect::<Vec<_>>();
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();
Expand Down

0 comments on commit 09ebd43

Please sign in to comment.