mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-27 01:28:19 +01:00
Reverse negation on ordering
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
parent
da55d5ec70
commit
0bf0125e82
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue