From 9e1e4761862a875562a87631466e96a8c1ebab83 Mon Sep 17 00:00:00 2001 From: Warrenren <50134367+Warrenren@users.noreply.github.com> Date: Sat, 11 Jun 2022 11:04:27 +0800 Subject: [PATCH] Update cmp.rs line 1352, delete parentheses for reviewers asking for it. --- library/core/src/cmp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),