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 arithmetic side effects #55

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Fix arithmetic side effects #55

merged 2 commits into from
Jul 11, 2023

Conversation

remkop22
Copy link
Contributor

@remkop22 remkop22 commented Jul 6, 2023

The clippy lint arithmetic-side-effects ended up being a little to pedantic for some cases where it was trivial to guarantee no overflow was possible. This PR fixes the cases that the lint pointed out were problematic.

@remkop22 remkop22 requested a review from bheylin July 6, 2023 15:45
ocpi-tariffs/src/types/number.rs Outdated Show resolved Hide resolved
ocpi-tariffs/src/types/time.rs Outdated Show resolved Hide resolved
ocpi-tariffs/src/types/time.rs Outdated Show resolved Hide resolved
@remkop22 remkop22 merged commit fefa6dc into main Jul 11, 2023
@remkop22 remkop22 deleted the fix-arithmetic-side-effects branch July 11, 2023 07:44
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