-
Notifications
You must be signed in to change notification settings - Fork 182
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
Remove dep on fraction
#4459
Remove dep on fraction
#4459
Conversation
pub fn convert_scientific_notation_to_fraction( | ||
number: &str, | ||
) -> Result<GenericFraction<BigUint>, DataError> { | ||
pub fn convert_scientific_notation_to_fraction(number: &str) -> Result<Ratio<BigInt>, DataError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not using BigRational
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to add a dep on the num
metacrate for this, and BigRational is just a typedef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're trying to keep dependencies low; I'm fine pulling in more num
crates but we don't have to pull in all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Manishearth , have you considered using BigRational
a4c8ac5
to
f30427e
Compare
Backports unicode-org#4459 Unlike that PR, this makes these deps dev-deps since they're not yet used by an experimental feature
Backports unicode-org#4459 Unlike that PR, this makes these deps dev-deps since they're not yet used by an experimental feature
See discussion in #3922 (comment)
Doesn't seem too complicated.
cc @younies @robertbastian