Explorar o código

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

Fix building without the num-bigint feature
Homu %!s(int64=8) %!d(string=hai) anos
pai
achega
f809c79d9f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()))