Skip to content

Commit 99b4b4e

Browse files
committed
cargo fmt
1 parent b02bdd0 commit 99b4b4e

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

src/lib.rs

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ macro_rules! impl_primitive_ops_ratio {
721721
(Ratio<T> for $primitive:ident) => {
722722
impl<T> Add<Ratio<T>> for $primitive
723723
where
724-
T: Clone + Integer + ::core::convert::From<$primitive>
724+
T: Clone + Integer + ::core::convert::From<$primitive>,
725725
{
726726
type Output = Ratio<T>;
727727

@@ -733,7 +733,7 @@ macro_rules! impl_primitive_ops_ratio {
733733

734734
impl<T> Sub<Ratio<T>> for $primitive
735735
where
736-
T: Clone + Integer + ::core::convert::From<$primitive>
736+
T: Clone + Integer + ::core::convert::From<$primitive>,
737737
{
738738
type Output = Ratio<T>;
739739

@@ -745,7 +745,7 @@ macro_rules! impl_primitive_ops_ratio {
745745

746746
impl<T> Mul<Ratio<T>> for $primitive
747747
where
748-
T: Clone + Integer + ::core::convert::From<$primitive>
748+
T: Clone + Integer + ::core::convert::From<$primitive>,
749749
{
750750
type Output = Ratio<T>;
751751

@@ -757,7 +757,7 @@ macro_rules! impl_primitive_ops_ratio {
757757

758758
impl<T> Div<Ratio<T>> for $primitive
759759
where
760-
T: Clone + Integer + ::core::convert::From<$primitive>
760+
T: Clone + Integer + ::core::convert::From<$primitive>,
761761
{
762762
type Output = Ratio<T>;
763763

@@ -1689,15 +1689,33 @@ mod test {
16891689

16901690
const _1I32: Rational32 = Ratio { numer: 1, denom: 1 };
16911691
const _1I64: Rational64 = Ratio { numer: 1, denom: 1 };
1692-
const _NEG1: Rational = Ratio { numer: -1, denom: 1 };
1693-
const _NEG1I32: Rational32 = Ratio { numer: -1, denom: 1 };
1694-
const _NEG1I64: Rational64 = Ratio { numer: -1, denom: 1 };
1692+
const _NEG1: Rational = Ratio {
1693+
numer: -1,
1694+
denom: 1,
1695+
};
1696+
const _NEG1I32: Rational32 = Ratio {
1697+
numer: -1,
1698+
denom: 1,
1699+
};
1700+
const _NEG1I64: Rational64 = Ratio {
1701+
numer: -1,
1702+
denom: 1,
1703+
};
16951704

16961705
const _2I32: Rational32 = Ratio { numer: 2, denom: 1 };
16971706
const _2I64: Rational64 = Ratio { numer: 2, denom: 1 };
1698-
const _NEG2: Rational = Ratio { numer: -2, denom: 1 };
1699-
const _NEG2I32: Rational32 = Ratio { numer: -2, denom: 1 };
1700-
const _NEG2I64: Rational64 = Ratio { numer: -2, denom: 1 };
1707+
const _NEG2: Rational = Ratio {
1708+
numer: -2,
1709+
denom: 1,
1710+
};
1711+
const _NEG2I32: Rational32 = Ratio {
1712+
numer: -2,
1713+
denom: 1,
1714+
};
1715+
const _NEG2I64: Rational64 = Ratio {
1716+
numer: -2,
1717+
denom: 1,
1718+
};
17011719

17021720
const _1I32_2I32: Rational32 = Ratio { numer: 1, denom: 2 };
17031721
const _1I64_2I64: Rational64 = Ratio { numer: 1, denom: 2 };

0 commit comments

Comments
 (0)