geforkt von mirrored/vaultwarden
Reverse negation on ordering
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
da55d5ec70
Commit
0bf0125e82
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -90,11 +90,11 @@ impl PartialOrd<i32> for UserOrgType {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gt(&self, other: &i32) -> bool {
|
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 {
|
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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren