Fix building without the num-bigint feature
This commit is contained in:
parent
7bf9a6ccf2
commit
33ca084e85
|
@ -668,6 +668,7 @@ impl RatioErrorKind {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "num-bigint")]
|
||||||
impl FromPrimitive for Ratio<BigInt> {
|
impl FromPrimitive for Ratio<BigInt> {
|
||||||
fn from_i64(n: i64) -> Option<Self> {
|
fn from_i64(n: i64) -> Option<Self> {
|
||||||
Some(Ratio::from_integer(n.into()))
|
Some(Ratio::from_integer(n.into()))
|
||||||
|
|
Loading…
Reference in New Issue