diff --git a/accounts-db/benches/accounts_index.rs b/accounts-db/benches/accounts_index.rs index f81d4cefe12194..11536cade0598a 100644 --- a/accounts-db/benches/accounts_index.rs +++ b/accounts-db/benches/accounts_index.rs @@ -2,6 +2,8 @@ extern crate test; +#[allow(deprecated)] +use solana_sdk::pubkey; use { rand::{thread_rng, Rng}, solana_accounts_db::{ @@ -15,8 +17,6 @@ use { std::sync::Arc, test::Bencher, }; -#[allow(deprecated)] -use solana_sdk::pubkey; #[bench] fn bench_accounts_index(bencher: &mut Bencher) { diff --git a/core/benches/banking_stage.rs b/core/benches/banking_stage.rs index b21d34f4139db4..7313c59c28f597 100644 --- a/core/benches/banking_stage.rs +++ b/core/benches/banking_stage.rs @@ -8,6 +8,8 @@ use { extern crate test; +#[allow(deprecated)] +use solana_sdk::pubkey; use { crossbeam_channel::{unbounded, Receiver}, log::*, @@ -59,8 +61,6 @@ use { }, test::Bencher, }; -#[allow(deprecated)] -use solana_sdk::pubkey; fn check_txs(receiver: &Arc>, ref_tx_count: usize) { let mut total = 0; diff --git a/ledger/benches/protobuf.rs b/ledger/benches/protobuf.rs index 29bae22020dffd..826076d55b576c 100644 --- a/ledger/benches/protobuf.rs +++ b/ledger/benches/protobuf.rs @@ -2,6 +2,8 @@ #![feature(test)] extern crate test; +#[allow(deprecated)] +use solana_sdk::pubkey; use { bincode::{deserialize, serialize}, solana_ledger::{ @@ -15,8 +17,6 @@ use { std::path::Path, test::Bencher, }; -#[allow(deprecated)] -use solana_sdk::pubkey; fn create_rewards() -> Rewards { (0..100) diff --git a/runtime/src/bank/fee_distribution.rs b/runtime/src/bank/fee_distribution.rs index 5cddfcbda22473..ab2a1f9fefc7ad 100644 --- a/runtime/src/bank/fee_distribution.rs +++ b/runtime/src/bank/fee_distribution.rs @@ -352,6 +352,8 @@ impl Bank { #[cfg(test)] pub mod tests { + #[allow(deprecated)] + use solana_sdk::pubkey; use { super::*, crate::genesis_utils::{ @@ -359,13 +361,11 @@ pub mod tests { create_genesis_config_with_vote_accounts, ValidatorVoteKeypairs, }, solana_sdk::{ - account::AccountSharedData, feature_set, native_token::sol_to_lamports, - rent::Rent, signature::Signer, + account::AccountSharedData, feature_set, native_token::sol_to_lamports, rent::Rent, + signature::Signer, }, std::sync::RwLock, }; - #[allow(deprecated)] - use solana_sdk::pubkey; #[test] fn test_deposit_or_burn_fee() { diff --git a/turbine/benches/cluster_info.rs b/turbine/benches/cluster_info.rs index 3f967e36093fcf..fa7e8a96e6db31 100644 --- a/turbine/benches/cluster_info.rs +++ b/turbine/benches/cluster_info.rs @@ -2,6 +2,8 @@ extern crate test; +#[allow(deprecated)] +use solana_sdk::pubkey; use { rand::{thread_rng, Rng}, solana_gossip::{ @@ -27,8 +29,6 @@ use { std::{collections::HashMap, net::UdpSocket, sync::Arc, time::Duration}, test::Bencher, }; -#[allow(deprecated)] -use solana_sdk::pubkey; #[bench] fn broadcast_shreds_bench(bencher: &mut Bencher) {