Add safety comments
This commit is contained in:
parent
b3f67ae150
commit
b8e1fde737
@ -44,6 +44,8 @@ impl Eq for AuditTransaction {}
|
||||
|
||||
impl PartialOrd for AuditTransaction {
|
||||
fn partial_cmp(&self, other: &AuditTransaction) -> Option<Ordering> {
|
||||
// If either score is NaN, this is false,
|
||||
// and partial_cmp will return None
|
||||
if self.score == other.score {
|
||||
Some(self.uid.cmp(&other.uid))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user