Fix rustfmt check (#23296)
This commit is contained in:
parent
6872fc79ba
commit
d0e85c293f
|
@ -1,6 +1,3 @@
|
||||||
use solana_program_runtime::timings::ExecuteTimingType;
|
|
||||||
use std::ops::Index;
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cluster_info_vote_listener::SlotVoteTracker,
|
cluster_info_vote_listener::SlotVoteTracker,
|
||||||
|
@ -9,10 +6,12 @@ use {
|
||||||
replay_stage::SUPERMINORITY_THRESHOLD,
|
replay_stage::SUPERMINORITY_THRESHOLD,
|
||||||
},
|
},
|
||||||
solana_ledger::blockstore_processor::{ConfirmationProgress, ConfirmationTiming},
|
solana_ledger::blockstore_processor::{ConfirmationProgress, ConfirmationTiming},
|
||||||
|
solana_program_runtime::timings::ExecuteTimingType,
|
||||||
solana_runtime::{bank::Bank, bank_forks::BankForks, vote_account::VoteAccount},
|
solana_runtime::{bank::Bank, bank_forks::BankForks, vote_account::VoteAccount},
|
||||||
solana_sdk::{clock::Slot, hash::Hash, pubkey::Pubkey},
|
solana_sdk::{clock::Slot, hash::Hash, pubkey::Pubkey},
|
||||||
std::{
|
std::{
|
||||||
collections::{BTreeMap, HashMap, HashSet},
|
collections::{BTreeMap, HashMap, HashSet},
|
||||||
|
ops::Index,
|
||||||
sync::{Arc, RwLock},
|
sync::{Arc, RwLock},
|
||||||
time::Instant,
|
time::Instant,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
use solana_program_runtime::timings::ExecuteTimingType;
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
block_error::BlockError, blockstore::Blockstore, blockstore_db::BlockstoreError,
|
block_error::BlockError, blockstore::Blockstore, blockstore_db::BlockstoreError,
|
||||||
|
@ -16,7 +14,7 @@ use {
|
||||||
},
|
},
|
||||||
solana_measure::measure::Measure,
|
solana_measure::measure::Measure,
|
||||||
solana_metrics::{datapoint_error, inc_new_counter_debug},
|
solana_metrics::{datapoint_error, inc_new_counter_debug},
|
||||||
solana_program_runtime::timings::ExecuteTimings,
|
solana_program_runtime::timings::{ExecuteTimingType, ExecuteTimings},
|
||||||
solana_rayon_threadlimit::get_thread_count,
|
solana_rayon_threadlimit::get_thread_count,
|
||||||
solana_runtime::{
|
solana_runtime::{
|
||||||
accounts_db::{AccountShrinkThreshold, AccountsDbConfig},
|
accounts_db::{AccountShrinkThreshold, AccountsDbConfig},
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
use core::fmt;
|
|
||||||
use enum_iterator::IntoEnumIterator;
|
|
||||||
use std::ops::{Index, IndexMut};
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
|
core::fmt,
|
||||||
|
enum_iterator::IntoEnumIterator,
|
||||||
solana_sdk::{pubkey::Pubkey, saturating_add_assign},
|
solana_sdk::{pubkey::Pubkey, saturating_add_assign},
|
||||||
std::collections::HashMap,
|
std::{
|
||||||
|
collections::HashMap,
|
||||||
|
ops::{Index, IndexMut},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Default, Debug, PartialEq)]
|
#[derive(Default, Debug, PartialEq)]
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
//! It offers a high-level API that signs transactions
|
//! It offers a high-level API that signs transactions
|
||||||
//! on behalf of the caller, and a low-level API for when they have
|
//! on behalf of the caller, and a low-level API for when they have
|
||||||
//! already been signed and verified.
|
//! already been signed and verified.
|
||||||
use solana_program_runtime::timings::ExecuteTimingType;
|
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
use solana_sdk::recent_blockhashes_account;
|
use solana_sdk::recent_blockhashes_account;
|
||||||
use {
|
use {
|
||||||
|
@ -82,7 +81,7 @@ use {
|
||||||
},
|
},
|
||||||
log_collector::LogCollector,
|
log_collector::LogCollector,
|
||||||
sysvar_cache::SysvarCache,
|
sysvar_cache::SysvarCache,
|
||||||
timings::ExecuteTimings,
|
timings::{ExecuteTimingType, ExecuteTimings},
|
||||||
},
|
},
|
||||||
solana_sdk::{
|
solana_sdk::{
|
||||||
account::{
|
account::{
|
||||||
|
|
Loading…
Reference in New Issue