Add rustfmt.toml and cargo fmt
(#23238)
* fmt * formatted Co-authored-by: Lucas B <buffalu@jito.network>
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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},
|
||||
|
Reference in New Issue
Block a user