Skip to content

Commit b9601c4

Browse files
committed
partial revert of 31fa865
Ratio is generic and so might contain a non-total orderable type. It should not use the default Ord implementation.
1 parent 31fa865 commit b9601c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libextra/num/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ macro_rules! cmp_impl {
107107
}
108108
cmp_impl!(impl Eq, eq, ne)
109109
cmp_impl!(impl TotalEq, equals)
110-
cmp_impl!(impl Ord, lt)
110+
cmp_impl!(impl Ord, lt, gt, le, ge)
111111
cmp_impl!(impl TotalOrd, cmp -> cmp::Ordering)
112112

113113
impl<T: Clone + Integer + Ord> Orderable for Ratio<T> {

0 commit comments

Comments
 (0)