diff options
| author | David Creswick <dcrewi@gyrae.net> | 2013-08-29 17:52:22 -0500 |
|---|---|---|
| committer | David Creswick <dcrewi@gyrae.net> | 2013-08-29 17:52:22 -0500 |
| commit | b9601c48a525dcdc569052e65c3c6b93833f3011 (patch) | |
| tree | 0093006289431a324d35b756d617964105bc796b /src/libextra | |
| parent | 31fa86511c0b7ccfc3d9977730593d0fd442f6fe (diff) | |
| download | rust-b9601c48a525dcdc569052e65c3c6b93833f3011.tar.gz rust-b9601c48a525dcdc569052e65c3c6b93833f3011.zip | |
partial revert of 31fa865
Ratio is generic and so might contain a non-total orderable type. It should not use the default Ord implementation.
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/num/rational.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/num/rational.rs b/src/libextra/num/rational.rs index 3ef34b9cee9..41e9a488bf8 100644 --- a/src/libextra/num/rational.rs +++ b/src/libextra/num/rational.rs @@ -107,7 +107,7 @@ macro_rules! cmp_impl { } cmp_impl!(impl Eq, eq, ne) cmp_impl!(impl TotalEq, equals) -cmp_impl!(impl Ord, lt) +cmp_impl!(impl Ord, lt, gt, le, ge) cmp_impl!(impl TotalOrd, cmp -> cmp::Ordering) impl<T: Clone + Integer + Ord> Orderable for Ratio<T> { |
