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:00:31 -08:00
parent 0ef1b25e4b
commit b8837c04ec
397 changed files with 5990 additions and 5175 deletions

View File

@@ -1740,11 +1740,12 @@ pub fn is_snapshot_config_valid(
#[cfg(test)]
mod tests {
use super::*;
use solana_ledger::{create_new_tmp_ledger, genesis_utils::create_genesis_config_with_leader};
use solana_sdk::genesis_config::create_genesis_config;
use solana_sdk::poh_config::PohConfig;
use std::fs::remove_dir_all;
use {
super::*,
solana_ledger::{create_new_tmp_ledger, genesis_utils::create_genesis_config_with_leader},
solana_sdk::{genesis_config::create_genesis_config, poh_config::PohConfig},
std::fs::remove_dir_all,
};
#[test]
fn validator_exit() {
@@ -1789,8 +1790,10 @@ mod tests {
fn test_backup_and_clear_blockstore() {
use std::time::Instant;
solana_logger::setup();
use solana_entry::entry;
use solana_ledger::{blockstore, get_tmp_ledger_path};
use {
solana_entry::entry,
solana_ledger::{blockstore, get_tmp_ledger_path},
};
let blockstore_path = get_tmp_ledger_path!();
{
let blockstore = Blockstore::open(&blockstore_path).unwrap();