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 build on Rust 1.45.0 and up #654

Merged
merged 10 commits into from
Oct 9, 2020

Conversation

niklaslong
Copy link
Contributor

@niklaslong niklaslong commented Oct 1, 2020

This fixes the f64 to u64 conversion and associated bounds for the outgoing amount in the exchange rate calculation.

Included:

@niklaslong niklaslong marked this pull request as draft October 1, 2020 09:47
niklaslong and others added 2 commits October 1, 2020 16:08
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
@niklaslong niklaslong force-pushed the u64-undefined-behavior branch 5 times, most recently from 2b61c7c to 3970583 Compare October 2, 2020 11:16
niklaslong and others added 5 commits October 2, 2020 14:18
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
@niklaslong niklaslong force-pushed the u64-undefined-behavior branch 5 times, most recently from 9873a54 to 061d58a Compare October 4, 2020 19:26
@niklaslong niklaslong changed the title fix(service-util): outgoing amount f64 to u64 conversion Fix build on Rust 1.45.0 and up Oct 4, 2020
@niklaslong niklaslong marked this pull request as ready for review October 5, 2020 13:22
Co-authored-by: Belsy Yuen <belsy@equilibrium.co>
Signed-off-by: Niklas Long <niklas@equilibrium.co>
Copy link
Collaborator

@ljedrz ljedrz left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Niklas Long <niklas@equilibrium.co>
@niklaslong
Copy link
Contributor Author

@ljedrz CI fails (no test is actually failing, might be because circleci is having some issues?) though it's green locally. I don't have the permissions to re-run the build on this.

In addition to the fixes discussed, I've also fixed a new 1.47 release related clippy lint.

Signed-off-by: Niklas Long <niklas@equilibrium.co>
@ljedrz ljedrz merged commit cc7ca07 into interledger:master Oct 9, 2020
@niklaslong niklaslong deleted the u64-undefined-behavior branch October 9, 2020 12:05
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.

None yet

2 participants