mirror of https://github.com/rust-lang/rust.git
Update cmp.rs
line 1352, delete parentheses for reviewers asking for it.
This commit is contained in:
parent
5e9e73cc9f
commit
9e1e476186
|
@ -1349,7 +1349,7 @@ mod impls {
|
||||||
impl PartialOrd for $t {
|
impl PartialOrd for $t {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn partial_cmp(&self, other: &$t) -> Option<Ordering> {
|
fn partial_cmp(&self, other: &$t) -> Option<Ordering> {
|
||||||
match ((*self) <= (*other), (*self) >= (*other)) {
|
match (*self <= *other, *self >= *other) {
|
||||||
(false, false) => None,
|
(false, false) => None,
|
||||||
(false, true) => Some(Greater),
|
(false, true) => Some(Greater),
|
||||||
(true, false) => Some(Less),
|
(true, false) => Some(Less),
|
||||||
|
|
Loading…
Reference in New Issue