Fix rustfmt check (#23296)

This commit is contained in:
Justin Starry 2022-02-23 16:38:53 +08:00 committed by GitHub
parent 6872fc79ba
commit d0e85c293f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 13 deletions

View File

@ -1,6 +1,3 @@
use solana_program_runtime::timings::ExecuteTimingType;
use std::ops::Index;
use {
crate::{
cluster_info_vote_listener::SlotVoteTracker,
@ -9,10 +6,12 @@ use {
replay_stage::SUPERMINORITY_THRESHOLD,
},
solana_ledger::blockstore_processor::{ConfirmationProgress, ConfirmationTiming},
solana_program_runtime::timings::ExecuteTimingType,
solana_runtime::{bank::Bank, bank_forks::BankForks, vote_account::VoteAccount},
solana_sdk::{clock::Slot, hash::Hash, pubkey::Pubkey},
std::{
collections::{BTreeMap, HashMap, HashSet},
ops::Index,
sync::{Arc, RwLock},
time::Instant,
},

View File

@ -1,5 +1,3 @@
use solana_program_runtime::timings::ExecuteTimingType;
use {
crate::{
block_error::BlockError, blockstore::Blockstore, blockstore_db::BlockstoreError,
@ -16,7 +14,7 @@ use {
},
solana_measure::measure::Measure,
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_runtime::{
accounts_db::{AccountShrinkThreshold, AccountsDbConfig},

View File

@ -1,10 +1,11 @@
use core::fmt;
use enum_iterator::IntoEnumIterator;
use std::ops::{Index, IndexMut};
use {
core::fmt,
enum_iterator::IntoEnumIterator,
solana_sdk::{pubkey::Pubkey, saturating_add_assign},
std::collections::HashMap,
std::{
collections::HashMap,
ops::{Index, IndexMut},
},
};
#[derive(Default, Debug, PartialEq)]

View File

@ -33,7 +33,6 @@
//! It offers a high-level API that signs transactions
//! on behalf of the caller, and a low-level API for when they have
//! already been signed and verified.
use solana_program_runtime::timings::ExecuteTimingType;
#[allow(deprecated)]
use solana_sdk::recent_blockhashes_account;
use {
@ -82,7 +81,7 @@ use {
},
log_collector::LogCollector,
sysvar_cache::SysvarCache,
timings::ExecuteTimings,
timings::{ExecuteTimingType, ExecuteTimings},
},
solana_sdk::{
account::{