Reformat imports to a consistent style for imports

rustfmt.toml configuration:
        imports_granularity = "One"
         group_imports = "One"
This commit is contained in:
Michael Vines
2021-12-03 09:20:02 -08:00
parent 5a7b487e3d
commit 139d15cd84
380 changed files with 6067 additions and 5293 deletions

View File

@@ -16,13 +16,13 @@ use {
is_parsable, is_pubkey, is_pubkey_or_keypair, is_slot, is_valid_percentage,
},
},
solana_ledger::entry::Entry,
solana_ledger::{
ancestor_iterator::AncestorIterator,
bank_forks_utils,
blockstore::{create_new_ledger, Blockstore, PurgeType},
blockstore_db::{self, AccessType, BlockstoreRecoveryMode, Column, Database},
blockstore_processor::ProcessOptions,
entry::Entry,
shred::Shred,
},
solana_runtime::{
@@ -31,8 +31,7 @@ use {
cost_model::CostModel,
cost_tracker::CostTracker,
hardened_unpack::{open_genesis_config, MAX_GENESIS_ARCHIVE_UNPACKED_SIZE},
snapshot_utils,
snapshot_utils::{SnapshotVersion, DEFAULT_MAX_SNAPSHOTS_TO_RETAIN},
snapshot_utils::{self, SnapshotVersion, DEFAULT_MAX_SNAPSHOTS_TO_RETAIN},
},
solana_sdk::{
account::{AccountSharedData, ReadableAccount, WritableAccount},

View File

@@ -1,8 +1,8 @@
use assert_cmd::prelude::*;
use solana_ledger::create_new_tmp_ledger;
use solana_ledger::genesis_utils::create_genesis_config;
use std::process::Command;
use std::process::Output;
use {
assert_cmd::prelude::*,
solana_ledger::{create_new_tmp_ledger, genesis_utils::create_genesis_config},
std::process::{Command, Output},
};
fn run_ledger_tool(args: &[&str]) -> Output {
Command::cargo_bin(env!("CARGO_PKG_NAME"))