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

@@ -10,8 +10,7 @@ use {
account::AccountSharedData,
clock::Slot,
hash::Hash,
instruction::Instruction,
instruction::InstructionError,
instruction::{Instruction, InstructionError},
pubkey::Pubkey,
signature::{Keypair, Signer},
slot_hashes::SlotHashes,

View File

@@ -10,14 +10,12 @@ use {
solana_program_test::*,
solana_sdk::{
account::ReadableAccount,
instruction::Instruction,
instruction::InstructionError,
instruction::{Instruction, InstructionError},
pubkey::{Pubkey, PUBKEY_BYTES},
signature::{Keypair, Signer},
transaction::{Transaction, TransactionError},
},
std::borrow::Cow,
std::result::Result,
std::{borrow::Cow, result::Result},
};
mod common;

View File

@@ -218,8 +218,7 @@ impl<'a> AddressLookupTable<'a> {
#[cfg(test)]
mod tests {
use super::*;
use solana_sdk::hash::Hash;
use {super::*, solana_sdk::hash::Hash};
impl AddressLookupTable<'_> {
fn new_for_tests(meta: LookupTableMeta, num_addresses: usize) -> Self {