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

chore(refactor): Access fields directly instead of through meta #48

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

shuhuiluo
Copy link
Collaborator

In the previous setup, several fields in different structs were accessed through the meta field, introducing unnecessary dependencies. This commit refactors those instances to directly access the fields, thereby simplifying code readability and maintainability. The impacted structs include token, currency_amount, and price within token.rs, currency_amount.rs, and price.rs respectively. The version number is also incremented in Cargo.toml from 0.16.0 to 0.16.1.

In the previous setup, several fields in different structs were accessed through the `meta` field, introducing unnecessary dependencies. This commit refactors those instances to directly access the fields, thereby simplifying code readability and maintainability. The impacted structs include `token`, `currency_amount`, and `price` within `token.rs`, `currency_amount.rs`, and `price.rs` respectively. The version number is also incremented in `Cargo.toml` from 0.16.0 to 0.16.1.
@shuhuiluo shuhuiluo requested a review from malik672 February 25, 2024 22:53
@shuhuiluo shuhuiluo self-assigned this Feb 25, 2024
@malik672 malik672 merged commit 7f08424 into master Feb 26, 2024
2 checks passed
@malik672 malik672 deleted the chore(refactor) branch February 26, 2024 04:15
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