diff --git a/ethers-solc/benches/compile_many.rs b/ethers-solc/benches/compile_many.rs index b667a6b9..b0df3c7a 100644 --- a/ethers-solc/benches/compile_many.rs +++ b/ethers-solc/benches/compile_many.rs @@ -36,7 +36,6 @@ fn load_compiler_inputs() -> Vec { let mut inputs = Vec::new(); for file in std::fs::read_dir(Path::new(&env!("CARGO_MANIFEST_DIR")).join("test-data/in")) .unwrap() - .into_iter() .take(5) { let file = file.unwrap(); diff --git a/ethers-solc/src/artifacts/ast/mod.rs b/ethers-solc/src/artifacts/ast/mod.rs index 82e01a2b..be83cd00 100644 --- a/ethers-solc/src/artifacts/ast/mod.rs +++ b/ethers-solc/src/artifacts/ast/mod.rs @@ -1089,11 +1089,11 @@ mod tests { let result: Result = serde_path_to_error::deserialize(deserializer); match result { Err(e) => { - println!("... {} fail: {e}", path_str); + println!("... {path_str} fail: {e}"); panic!(); } Ok(_) => { - println!("... {} ok", path_str); + println!("... {path_str} ok"); } } }) diff --git a/ethers-solc/src/compile/mod.rs b/ethers-solc/src/compile/mod.rs index fe40cfb9..b34913fe 100644 --- a/ethers-solc/src/compile/mod.rs +++ b/ethers-solc/src/compile/mod.rs @@ -457,7 +457,7 @@ impl Solc { use sha2::Digest; let mut hasher = sha2::Sha256::new(); - hasher.update(&content); + hasher.update(content); let checksum_calc = &hasher.finalize()[..]; let checksum_found = &RELEASES.0.get_checksum(&version).expect("checksum not found"); diff --git a/ethers-solc/src/resolver/mod.rs b/ethers-solc/src/resolver/mod.rs index eceba2e1..848713ad 100644 --- a/ethers-solc/src/resolver/mod.rs +++ b/ethers-solc/src/resolver/mod.rs @@ -649,7 +649,7 @@ impl Graph { return Vec::new() } - let mut result = sets.pop().cloned().expect("not empty; qed.").clone(); + let mut result = sets.pop().cloned().expect("not empty; qed."); if !sets.is_empty() { result.retain(|item| sets.iter().all(|set| set.contains(item))); } diff --git a/examples/middleware/examples/create_custom_middleware.rs b/examples/middleware/examples/create_custom_middleware.rs index 7e19ee3a..56a4a21d 100644 --- a/examples/middleware/examples/create_custom_middleware.rs +++ b/examples/middleware/examples/create_custom_middleware.rs @@ -92,7 +92,7 @@ where }; println!("Original transaction gas: {curr_gas:?} wei"); - let units: U256 = U256::exp10(CONTINGENCY_UNITS.into()); + let units: U256 = U256::exp10(CONTINGENCY_UNITS); let raised_gas: U256 = (curr_gas * self.contingency) / units; tx.set_gas(raised_gas); println!("Raised transaction gas: {raised_gas:?} wei");