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

Use generic Float trait #15

Merged
merged 2 commits into from
Apr 23, 2018
Merged

Use generic Float trait #15

merged 2 commits into from
Apr 23, 2018

Conversation

mthh
Copy link
Contributor

@mthh mthh commented Apr 3, 2018

Hi,

This PR change the default f64 type in favor of the Float trait from num-traits, so it will allow to use f64 as well as f32 and should fix #12.

Don't hesitate to tell me if there is things that's need to be done in order to merge it.
Cheers!

@mrhooray
Copy link
Owner

mrhooray commented Apr 23, 2018

Thanks @mthh. I see no changes needed on doctest in lib.rs. Is it due to some type inference feature?

Edit: nvm, haven't used Rust for a while and it sure is fine. Though still a breaking change on interface.

@mrhooray mrhooray merged commit d4f2e12 into mrhooray:master Apr 23, 2018
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.

Support f32 not only f64
2 participants