diff --git a/bin/host/src/fetcher/mod.rs b/bin/host/src/fetcher/mod.rs index 32c85643c..75a87a801 100644 --- a/bin/host/src/fetcher/mod.rs +++ b/bin/host/src/fetcher/mod.rs @@ -527,7 +527,7 @@ where .await .map_err(|e| anyhow!("Failed to fetch preimage: {e}"))?; - let mut merged = HashMap::::new(); + let mut merged = HashMap::::default(); merged.extend(execute_payload_response.state); merged.extend(execute_payload_response.codes); merged.extend(execute_payload_response.keys); diff --git a/crates/executor/src/syscalls/canyon.rs b/crates/executor/src/syscalls/canyon.rs index f5803f084..14778626f 100644 --- a/crates/executor/src/syscalls/canyon.rs +++ b/crates/executor/src/syscalls/canyon.rs @@ -49,7 +49,7 @@ where revm_acc.mark_touch(); // Commit the create2 deployer account to the database. - db.commit(HashMap::from([(CREATE_2_DEPLOYER_ADDR, revm_acc)])); + db.commit(HashMap::from_iter([(CREATE_2_DEPLOYER_ADDR, revm_acc)])); return Ok(()); }