Add rustfmt.toml and cargo fmt (#23238)

* fmt

* formatted

Co-authored-by: Lucas B <buffalu@jito.network>
This commit is contained in:
buffalu
2022-02-18 23:32:29 -06:00
committed by GitHub
parent 1add82aa9e
commit 70ebab2c82
33 changed files with 127 additions and 108 deletions

View File

@ -24,8 +24,10 @@ pub mod solana_client {
}
pub mod rpc_client {
use super::client_error::Result as ClientResult;
use crate::{hash::Hash, signature::Signature, transaction::Transaction};
use {
super::client_error::Result as ClientResult,
crate::{hash::Hash, signature::Signature, transaction::Transaction},
};
pub struct RpcClient;

View File

@ -1,15 +1,17 @@
//! Successors of instruction_context_context::StackFrame, KeyedAccount and AccountInfo
use crate::{
account::{AccountSharedData, ReadableAccount, WritableAccount},
instruction::InstructionError,
lamports::LamportsError,
pubkey::Pubkey,
};
use std::{
cell::{RefCell, RefMut},
collections::HashSet,
pin::Pin,
use {
crate::{
account::{AccountSharedData, ReadableAccount, WritableAccount},
instruction::InstructionError,
lamports::LamportsError,
pubkey::Pubkey,
},
std::{
cell::{RefCell, RefMut},
collections::HashSet,
pin::Pin,
},
};
pub type TransactionAccount = (Pubkey, AccountSharedData);

View File

@ -2,11 +2,7 @@
#![cfg(target_arch = "wasm32")]
#![allow(non_snake_case)]
use {
crate::{
hash::Hash,
signer::keypair::Keypair,
{message::Message, transaction::Transaction},
},
crate::{hash::Hash, message::Message, signer::keypair::Keypair, transaction::Transaction},
solana_program::{
pubkey::Pubkey,
wasm::{display_to_jsvalue, instructions::Instructions},