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: Implement saturating sub for AmountOf #1740

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

dist1ll
Copy link
Member

@dist1ll dist1ll commented Sep 29, 2024

Since we're using saturating arithmetic in many places (including Time), it might be good to have a blanket implementation for the phantom types.

@github-actions github-actions bot added the chore label Sep 29, 2024
@dist1ll dist1ll marked this pull request as ready for review September 30, 2024 07:05
@dist1ll dist1ll requested review from a team as code owners September 30, 2024 07:05
@dist1ll dist1ll self-assigned this Sep 30, 2024
Copy link
Contributor

@kpop-dfinity kpop-dfinity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks much cleaner

@dist1ll dist1ll added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit 9c08b99 Sep 30, 2024
28 checks passed
@dist1ll dist1ll deleted the alic/phantom-sat branch September 30, 2024 09:51
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
Since we're using saturating arithmetic in many places (including
`Time`), it might be good to have a blanket implementation for the
phantom types.

---------

Co-authored-by: IDX GitHub Automation <infra+github-automation@dfinity.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants