diff options
| author | Guanqun Lu <guanqun.lu@gmail.com> | 2019-11-26 22:55:01 +0800 |
|---|---|---|
| committer | Guanqun Lu <guanqun.lu@gmail.com> | 2019-11-26 22:55:38 +0800 |
| commit | 55d725884b1fb62cbec038d8633bd40c39cc896f (patch) | |
| tree | a95b1a51b76d540f7c6e1e448c59c743f7484596 /src/libcore | |
| parent | 0f6f66fcdc4abf110171ee06b1a72bdd2883b74f (diff) | |
| download | rust-55d725884b1fb62cbec038d8633bd40c39cc896f.tar.gz rust-55d725884b1fb62cbec038d8633bd40c39cc896f.zip | |
follow the same function order in the trait
This removes several warnings in IDE.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index eb5121dd0e0..eea3dc39d34 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -464,9 +464,9 @@ impl<T: PartialOrd> PartialOrd for Reverse<T> { #[inline] fn le(&self, other: &Self) -> bool { other.0 <= self.0 } #[inline] - fn ge(&self, other: &Self) -> bool { other.0 >= self.0 } - #[inline] fn gt(&self, other: &Self) -> bool { other.0 > self.0 } + #[inline] + fn ge(&self, other: &Self) -> bool { other.0 >= self.0 } } #[stable(feature = "reverse_cmp_key", since = "1.19.0")] @@ -1176,9 +1176,9 @@ mod impls { #[inline] fn le(&self, other: & &B) -> bool { PartialOrd::le(*self, *other) } #[inline] - fn ge(&self, other: & &B) -> bool { PartialOrd::ge(*self, *other) } - #[inline] fn gt(&self, other: & &B) -> bool { PartialOrd::gt(*self, *other) } + #[inline] + fn ge(&self, other: & &B) -> bool { PartialOrd::ge(*self, *other) } } #[stable(feature = "rust1", since = "1.0.0")] impl<A: ?Sized> Ord for &A where A: Ord { @@ -1208,9 +1208,9 @@ mod impls { #[inline] fn le(&self, other: &&mut B) -> bool { PartialOrd::le(*self, *other) } #[inline] - fn ge(&self, other: &&mut B) -> bool { PartialOrd::ge(*self, *other) } - #[inline] fn gt(&self, other: &&mut B) -> bool { PartialOrd::gt(*self, *other) } + #[inline] + fn ge(&self, other: &&mut B) -> bool { PartialOrd::ge(*self, *other) } } #[stable(feature = "rust1", since = "1.0.0")] impl<A: ?Sized> Ord for &mut A where A: Ord { |
