소스 검색

Auto merge of #299 - dotdash:rational-fix, r=cuviper

Fix building without the num-bigint feature
Homu 8 년 전
부모
커밋
f809c79d9f
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()))