Skip to content

Commit

Permalink
🚨 fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan authored and lukacan committed Jan 10, 2024
1 parent de40781 commit 830aabe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/client/src/fuzzer/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pub mod fuzzer_generator;
pub mod accounts_storage;
pub mod data_builder;
pub mod fuzzer_generator;
#[cfg(feature = "fuzzing")]
pub mod program_test_client_blocking;
pub mod snapshot;
pub mod accounts_storage;
pub mod snapshot_generator;

pub type AccountId = u8;
4 changes: 1 addition & 3 deletions crates/client/src/fuzzer/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

use solana_sdk::{account::Account, instruction::AccountMeta};

use crate::data_builder::{FuzzDeserialize, FuzzClient, FuzzClientError, FuzzingError};


use crate::data_builder::{FuzzClient, FuzzClientError, FuzzDeserialize, FuzzingError};

pub struct Snapshot<'info, T> {
before: Vec<Option<Account>>,
Expand Down
2 changes: 1 addition & 1 deletion crates/client/src/fuzzer/snapshot_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use syn::{
parse_quote, Attribute, Fields, GenericArgument, Item, ItemStruct, PathArguments, TypePath,
};

pub fn generate_snapshots_code(code_path: &Vec<(String, Utf8PathBuf)>) -> Result<String, String> {
pub fn generate_snapshots_code(code_path: &[(String, Utf8PathBuf)]) -> Result<String, String> {
let code = code_path.iter().map(|(code, path)| {
let mut mod_program = None::<syn::ItemMod>;
let mut file = File::open(path).map_err(|e| e.to_string())?;
Expand Down

0 comments on commit 830aabe

Please sign in to comment.