Skip to content

Commit

Permalink
chore: use HashMap::from_iter (#13649)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 4, 2025
1 parent 86399e2 commit fc9d95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/storage/db-common/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ where
),
);
}
let all_reverts_init: RevertsInit = std::iter::once((block, reverts_init)).collect();
let all_reverts_init: RevertsInit = HashMap::from_iter([(block, reverts_init)]);

let execution_outcome = ExecutionOutcome::new_init(
state_init,
Expand Down

0 comments on commit fc9d95a

Please sign in to comment.