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

fix: Enhance various checks and clean up code #59

Merged
merged 2 commits into from
Mar 17, 2024
Merged

fix: Enhance various checks and clean up code #59

merged 2 commits into from
Mar 17, 2024

Conversation

shuhuiluo
Copy link
Collaborator

This commit updates the square root function in sqrt.rs and the check for decimal places in currency_amount.rs to use clearer, more idiomatic conditional checks. Additionally, it simplifies the to_fixed function in fraction.rs for more readable code formatting and updates the README to provide more accurate instructions. This commit also removes a redundant test in currency_amount.rs.

This commit updates the square root function in `sqrt.rs` and the check for decimal places in `currency_amount.rs` to use clearer, more idiomatic conditional checks. Additionally, it simplifies the `to_fixed` function in `fraction.rs` for more readable code formatting and updates the README to provide more accurate instructions. This commit also removes a redundant test in `currency_amount.rs`.
@shuhuiluo shuhuiluo requested a review from malik672 March 17, 2024 10:36
@shuhuiluo shuhuiluo self-assigned this Mar 17, 2024
@malik672 malik672 merged commit 4fabfa8 into master Mar 17, 2024
2 checks passed
@malik672 malik672 deleted the fix branch March 17, 2024 10:50
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