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

@ -19,16 +19,14 @@ use {
serde::Serialize,
solana_program::{system_instruction::SystemInstruction, system_program},
solana_sdk::feature_set,
std::result,
std::sync::Arc,
std::{result, sync::Arc},
thiserror::Error,
};
mod sanitized;
mod versioned;
pub use sanitized::*;
pub use versioned::*;
pub use {sanitized::*, versioned::*};
/// Reasons a transaction might be rejected.
#[derive(
@ -547,15 +545,17 @@ pub fn get_nonce_pubkey_from_instruction<'a>(
mod tests {
#![allow(deprecated)]
use super::*;
use crate::{
hash::hash,
instruction::AccountMeta,
signature::{Keypair, Presigner, Signer},
system_instruction, sysvar,
use {
super::*,
crate::{
hash::hash,
instruction::AccountMeta,
signature::{Keypair, Presigner, Signer},
system_instruction, sysvar,
},
bincode::{deserialize, serialize, serialized_size},
std::mem::size_of,
};
use bincode::{deserialize, serialize, serialized_size};
use std::mem::size_of;
fn get_program_id(tx: &Transaction, instruction_index: usize) -> &Pubkey {
let message = tx.message();