diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index 353dd74ba89..81aed8afd5b 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -1349,7 +1349,7 @@ macro_rules! partial_ord_impl { impl PartialOrd for $t { #[inline] fn partial_cmp(&self, other: &$t) -> Option { - match ((*self) <= (*other), (*self) >= (*other)) { + match (*self <= *other, *self >= *other) { (false, false) => None, (false, true) => Some(Greater), (true, false) => Some(Less),