Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Aug 4, 2024
1 parent bd7d4f9 commit 17d5889
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions accounts-db/benches/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

extern crate test;

#[allow(deprecated)]
use solana_sdk::pubkey;
use {
rand::{thread_rng, Rng},
solana_accounts_db::{
Expand All @@ -15,8 +17,6 @@ use {
std::sync::Arc,
test::Bencher,
};
#[allow(deprecated)]
use solana_sdk::pubkey;

#[bench]
fn bench_accounts_index(bencher: &mut Bencher) {
Expand Down
4 changes: 2 additions & 2 deletions core/benches/banking_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use {

extern crate test;

#[allow(deprecated)]
use solana_sdk::pubkey;
use {
crossbeam_channel::{unbounded, Receiver},
log::*,
Expand Down Expand Up @@ -59,8 +61,6 @@ use {
},
test::Bencher,
};
#[allow(deprecated)]
use solana_sdk::pubkey;

fn check_txs(receiver: &Arc<Receiver<WorkingBankEntry>>, ref_tx_count: usize) {
let mut total = 0;
Expand Down
4 changes: 2 additions & 2 deletions ledger/benches/protobuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#![feature(test)]
extern crate test;

#[allow(deprecated)]
use solana_sdk::pubkey;
use {
bincode::{deserialize, serialize},
solana_ledger::{
Expand All @@ -15,8 +17,6 @@ use {
std::path::Path,
test::Bencher,
};
#[allow(deprecated)]
use solana_sdk::pubkey;

fn create_rewards() -> Rewards {
(0..100)
Expand Down
8 changes: 4 additions & 4 deletions runtime/src/bank/fee_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,20 +352,20 @@ impl Bank {

#[cfg(test)]
pub mod tests {
#[allow(deprecated)]
use solana_sdk::pubkey;
use {
super::*,
crate::genesis_utils::{
create_genesis_config, create_genesis_config_with_leader,
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() {
Expand Down
4 changes: 2 additions & 2 deletions turbine/benches/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

extern crate test;

#[allow(deprecated)]
use solana_sdk::pubkey;
use {
rand::{thread_rng, Rng},
solana_gossip::{
Expand All @@ -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) {
Expand Down

0 comments on commit 17d5889

Please sign in to comment.