Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Apr 30, 2024
1 parent 295401d commit f7ff909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arbitrator/prover/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Function {
let code_hashes = (0..chunks).into_par_iter().map(crunch).collect();

#[cfg(not(feature = "rayon"))]
let code_hashes = (0..chunks).into_iter().map(crunch).collect();
let code_hashes = (0..chunks).map(crunch).collect();

self.code_merkle = Merkle::new(MerkleType::Instruction, code_hashes);
}
Expand Down
4 changes: 2 additions & 2 deletions arbitrator/stylus/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ impl<D: DataReader, E: EvmApi<D>> NativeInstance<D, E> {
let env = WasmEnv::new(compile, None, evm, evm_data);
let module_hash = env.evm_data.module_hash;

if let Some((m, store)) = InitCache::get(module_hash, version, debug) {
return Self::from_module(m, store, env);
if let Some((module, store)) = InitCache::get(module_hash, version, debug) {
return Self::from_module(module, store, env);
}
let (module, store) = match env.evm_data.cached {
true => InitCache::insert(module_hash, module, version, debug)?,
Expand Down

0 comments on commit f7ff909

Please sign in to comment.