From 33ca084e85cca66eeed7b6dbe1950c06b5518e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Steinbrink?= Date: Fri, 9 Jun 2017 18:45:44 +0200 Subject: [PATCH] Fix building without the num-bigint feature --- rational/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rational/src/lib.rs b/rational/src/lib.rs index e12b987..c2d58e4 100644 --- a/rational/src/lib.rs +++ b/rational/src/lib.rs @@ -668,6 +668,7 @@ impl RatioErrorKind { } } +#[cfg(feature = "num-bigint")] impl FromPrimitive for Ratio { fn from_i64(n: i64) -> Option { Some(Ratio::from_integer(n.into()))