Fix building without the num-bigint feature

This commit is contained in:
Björn Steinbrink 2017-06-09 18:45:44 +02:00
parent 7bf9a6ccf2
commit 33ca084e85
1 changed files with 1 additions and 0 deletions

View File

@ -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()))