Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: address mappings for conciseness #80

Merged
merged 6 commits into from
Sep 13, 2024
Merged

refactor!: address mappings for conciseness #80

merged 6 commits into from
Sep 13, 2024

Conversation

shuhuiluo
Copy link
Collaborator

Refactored address mappings to use AddressMap and from_iter for brevity and readability. This change removes redundant code and improves maintainability. Adjusted constant definitions and function signatures accordingly.

Refactored address mappings to use `AddressMap` and `from_iter` for brevity and readability. This change removes redundant code and improves maintainability. Adjusted constant definitions and function signatures accordingly.
@shuhuiluo shuhuiluo requested a review from malik672 September 13, 2024 02:49
Replaced multiple `FxHashMap::insert` calls with `FxHashMap::from_iter` using a vector. This improves code readability and reduces redundancy.
Inline annotations were added to functions across multiple modules to suggest the compiler to replace function calls with the function's body. This could potentially optimize runtime performance by reducing the overhead of function calls.
Re-enable several Clippy lints for cleaner code validation. Refactor `panic!` calls to `assert!` for better consistency and clarity. Update function arguments to use references where appropriate.
Uncommented the `clippy::must_use_candidate` lint and annotated essential functions with `#[must_use]` attribute. This increases code reliability by enforcing that critical return values are not ignored.
@shuhuiluo shuhuiluo mentioned this pull request Sep 13, 2024
src/entities/weth9.rs Show resolved Hide resolved
@malik672 malik672 merged commit d04f121 into master Sep 13, 2024
2 checks passed
@malik672 malik672 deleted the addresses branch September 13, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants