Cleanup runtime use syntax (#8002)

This commit is contained in:
Jack May
2020-01-28 17:03:20 -08:00
committed by GitHub
parent 4a074133f7
commit 83718a3b3e
26 changed files with 201 additions and 184 deletions

View File

@ -1,9 +1,6 @@
use solana_runtime::bank::Bank;
use solana_sdk::genesis_config::create_genesis_config;
use solana_sdk::hash::hash;
use solana_sdk::pubkey::Pubkey;
use std::sync::Arc;
use std::thread::Builder;
use solana_sdk::{genesis_config::create_genesis_config, hash::hash, pubkey::Pubkey};
use std::{sync::Arc, thread::Builder};
#[test]
fn test_race_register_tick_freeze() {

View File

@ -1,10 +1,10 @@
use solana_runtime::bank::Bank;
use solana_runtime::bank_client::BankClient;
use solana_runtime::loader_utils::create_invoke_instruction;
use solana_sdk::client::SyncClient;
use solana_sdk::genesis_config::create_genesis_config;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::signature::KeypairUtil;
use solana_runtime::{
bank::Bank, bank_client::BankClient, loader_utils::create_invoke_instruction,
};
use solana_sdk::{
client::SyncClient, genesis_config::create_genesis_config, pubkey::Pubkey,
signature::KeypairUtil,
};
#[test]
fn test_program_native_noop() {

View File

@ -26,8 +26,7 @@ use solana_storage_program::{
storage_instruction::{self, StorageAccountType},
storage_processor::process_instruction,
};
use std::collections::HashMap;
use std::sync::Arc;
use std::{collections::HashMap, sync::Arc};
const TICKS_IN_SEGMENT: u64 = DEFAULT_SLOTS_PER_SEGMENT * DEFAULT_TICKS_PER_SLOT;