Browse Source
Reverse negation on ordering
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
pull/1546/head
Jake Howard
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/db/models/organization.rs
|
|
@ -90,11 +90,11 @@ impl PartialOrd<i32> for UserOrgType { |
|
|
|
} |
|
|
|
|
|
|
|
fn gt(&self, other: &i32) -> bool { |
|
|
|
!matches!(self.partial_cmp(other), Some(Ordering::Less) | Some(Ordering::Equal)) |
|
|
|
matches!(self.partial_cmp(other), Some(Ordering::Greater)) |
|
|
|
} |
|
|
|
|
|
|
|
fn ge(&self, other: &i32) -> bool { |
|
|
|
!matches!(self.partial_cmp(other), Some(Ordering::Less)) |
|
|
|
matches!(self.partial_cmp(other), Some(Ordering::Greater) | Some(Ordering::Equal)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|