Update cmp.rs

line 1352, delete parentheses for reviewers asking for it.
This commit is contained in:
Warrenren 2022-06-11 11:04:27 +08:00 committed by GitHub
parent 5e9e73cc9f
commit 9e1e476186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1349,7 +1349,7 @@ macro_rules! partial_ord_impl {
impl PartialOrd for $t {
#[inline]
fn partial_cmp(&self, other: &$t) -> Option<Ordering> {
match ((*self) <= (*other), (*self) >= (*other)) {
match (*self <= *other, *self >= *other) {
(false, false) => None,
(false, true) => Some(Greater),
(true, false) => Some(Less),