Reformat imports to a consistent style for imports
rustfmt.toml configuration: imports_granularity = "One" group_imports = "One"
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user