Reformat imports to a consistent style for imports
rustfmt.toml configuration: imports_granularity = "One" group_imports = "One"
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
|
||||
#[allow(deprecated)]
|
||||
use solana_sdk::sysvar::fees::Fees;
|
||||
// Export tokio for test clients
|
||||
pub use tokio;
|
||||
use {
|
||||
async_trait::async_trait,
|
||||
chrono_humanize::{Accuracy, HumanTime, Tense},
|
||||
@ -28,8 +30,7 @@ use {
|
||||
fee_calculator::{FeeCalculator, FeeRateGovernor},
|
||||
genesis_config::{ClusterType, GenesisConfig},
|
||||
hash::Hash,
|
||||
instruction::Instruction,
|
||||
instruction::InstructionError,
|
||||
instruction::{Instruction, InstructionError},
|
||||
message::Message,
|
||||
native_token::sol_to_lamports,
|
||||
poh_config::PohConfig,
|
||||
@ -62,13 +63,8 @@ use {
|
||||
thiserror::Error,
|
||||
tokio::task::JoinHandle,
|
||||
};
|
||||
|
||||
// Export types so test clients can limit their solana crate dependencies
|
||||
pub use solana_banks_client::BanksClient;
|
||||
pub use solana_program_runtime::invoke_context::InvokeContext;
|
||||
|
||||
// Export tokio for test clients
|
||||
pub use tokio;
|
||||
pub use {solana_banks_client::BanksClient, solana_program_runtime::invoke_context::InvokeContext};
|
||||
|
||||
pub mod programs;
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
use solana_sdk::{
|
||||
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
|
||||
signature::{Keypair, Signer},
|
||||
transaction::Transaction,
|
||||
use {
|
||||
solana_program_test::ProgramTest,
|
||||
solana_sdk::{
|
||||
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
|
||||
signature::{Keypair, Signer},
|
||||
transaction::Transaction,
|
||||
},
|
||||
};
|
||||
|
||||
use solana_program_test::ProgramTest;
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_bpf_loader_upgradable_present() {
|
||||
// Arrange
|
||||
|
@ -2,8 +2,15 @@ use {
|
||||
solana_banks_client::BanksClient,
|
||||
solana_program_test::{processor, ProgramTest},
|
||||
solana_sdk::{
|
||||
account_info::AccountInfo, entrypoint::ProgramResult, hash::Hash, instruction::Instruction,
|
||||
msg, pubkey::Pubkey, rent::Rent, signature::Keypair, signature::Signer, system_instruction,
|
||||
account_info::AccountInfo,
|
||||
entrypoint::ProgramResult,
|
||||
hash::Hash,
|
||||
instruction::Instruction,
|
||||
msg,
|
||||
pubkey::Pubkey,
|
||||
rent::Rent,
|
||||
signature::{Keypair, Signer},
|
||||
system_instruction,
|
||||
transaction::Transaction,
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user