Add safety comments

This commit is contained in:
junderw authored and Mononaut committed 2023-07-03 10:18:18 -04:00
1 parent b3f67ae150
commit b8e1fde737
1 file changed
+2
@@ -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 {