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

@@ -1,7 +1,12 @@
//! useful extras for Account state
use crate::{account::Account, account::AccountSharedData, instruction::InstructionError};
use bincode::ErrorKind;
use std::cell::Ref;
use {
crate::{
account::{Account, AccountSharedData},
instruction::InstructionError,
},
bincode::ErrorKind,
std::cell::Ref,
};
/// Convenience trait to covert bincode errors to instruction errors.
pub trait StateMut<T> {
@@ -60,8 +65,10 @@ where
#[cfg(test)]
mod tests {
use super::*;
use crate::{account::AccountSharedData, pubkey::Pubkey};
use {
super::*,
crate::{account::AccountSharedData, pubkey::Pubkey},
};
#[test]
fn test_account_state() {