Skip to content

Commit 6437862

Browse files
committed
Fix travis failures for all but 1.15.0
1 parent 99b4b4e commit 6437862

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ impl_primitive_ops_ratio!(Ratio<T> for u128);
798798

799799
// Implementing these directly because the implementation of Add<T>, Sub<T>,
800800
// Mul<T> and Div<T> for Ratio<T> don't cover these.
801+
#[cfg(feature = "bigint")]
801802
macro_rules! impl_bigint_ops_primitive {
802803
($primitive:ident) => {
803804
impl Add<$primitive> for BigRational {
@@ -1683,7 +1684,9 @@ mod test {
16831684
}
16841685

16851686
mod arith {
1686-
use super::super::{BigRational, Ratio, Rational, Rational32, Rational64};
1687+
#[cfg(feature = "bigint")]
1688+
use super::super::BigRational;
1689+
use super::super::{Ratio, Rational, Rational32, Rational64};
16871690
use super::{_0, _1, _1_2, _2, _3_2, _NEG1_2, to_big};
16881691
use traits::{CheckedAdd, CheckedDiv, CheckedMul, CheckedSub};
16891692

0 commit comments

Comments
 (0)