diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 14016bbed0..13c6c8febf 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -5738,9 +5738,7 @@ pub(crate) mod tests { use crate::{ accounts_background_service::{AbsRequestHandler, SendDroppedBankCallback}, accounts_db::DEFAULT_ACCOUNTS_SHRINK_RATIO, - accounts_index::{ - AccountIndex, AccountMap, AccountSecondaryIndexes, ScanError, ITER_BATCH_SIZE, - }, + accounts_index::{AccountIndex, AccountSecondaryIndexes, ScanError, ITER_BATCH_SIZE}, ancestors::Ancestors, genesis_utils::{ activate_all_features, bootstrap_validator_stake_lamports, @@ -7309,9 +7307,9 @@ pub(crate) mod tests { } } - fn map_to_test_bad_range() -> AccountMap { - let mut map: AccountMap = AccountMap::new(); - // when empty, AccountMap (= std::collections::BTreeMap) doesn't sanitize given range... + fn map_to_test_bad_range() -> std::collections::BTreeMap { + let mut map = std::collections::BTreeMap::new(); + // when empty, std::collections::BTreeMap doesn't sanitize given range... map.insert(solana_sdk::pubkey::new_rand(), 1); map }