浏览代码

Fix building without the num-bigint feature

Björn Steinbrink 7 年之前
父节点
当前提交
33ca084e85
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      rational/src/lib.rs

+ 1 - 0
rational/src/lib.rs

@@ -668,6 +668,7 @@ impl RatioErrorKind {
     }
 }
 
+#[cfg(feature = "num-bigint")]
 impl FromPrimitive for Ratio<BigInt> {
     fn from_i64(n: i64) -> Option<Self> {
         Some(Ratio::from_integer(n.into()))