From 830aabee886c106caaa0acd56c29e8ebebf9aeee Mon Sep 17 00:00:00 2001 From: lukacan Date: Wed, 10 Jan 2024 22:18:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fmt=20+=20clippy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/fuzzer/mod.rs | 4 ++-- crates/client/src/fuzzer/snapshot.rs | 4 +--- crates/client/src/fuzzer/snapshot_generator.rs | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/client/src/fuzzer/mod.rs b/crates/client/src/fuzzer/mod.rs index 2bdb08b57..eaa971342 100644 --- a/crates/client/src/fuzzer/mod.rs +++ b/crates/client/src/fuzzer/mod.rs @@ -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; diff --git a/crates/client/src/fuzzer/snapshot.rs b/crates/client/src/fuzzer/snapshot.rs index 2a735ce9b..998828924 100644 --- a/crates/client/src/fuzzer/snapshot.rs +++ b/crates/client/src/fuzzer/snapshot.rs @@ -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>, diff --git a/crates/client/src/fuzzer/snapshot_generator.rs b/crates/client/src/fuzzer/snapshot_generator.rs index 2b8c7ceda..a59233516 100644 --- a/crates/client/src/fuzzer/snapshot_generator.rs +++ b/crates/client/src/fuzzer/snapshot_generator.rs @@ -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 { +pub fn generate_snapshots_code(code_path: &[(String, Utf8PathBuf)]) -> Result { let code = code_path.iter().map(|(code, path)| { let mut mod_program = None::; let mut file = File::open(path).map_err(|e| e.to_string())?;