rust-ethereum / evm

Pure Rust implementation of Ethereum Virtual Machine
Apache License 2.0
1.16k stars 355 forks source link

Chore: Refactoring with simplification and more idiomatic clippy-way #260

Closed mrLSD closed 9 months ago

mrLSD commented 9 months ago

Description

🔦 Refactored and simplified some parts of the code. And for some parts of the code applied more strict rules through clippy: pedantic and nursery. It's only partly compatible with that, as some part of the code, AFAIK represented for better readability. PR changes do not touch parts related to a better visual understanding of the code.

➡️ Additional notes about adding map_err: as it's more idiomatic way to process error flow for factored parts of code.