Fix: Some of the clippy pedantic lints

This commit is contained in:
junderw
2023-06-23 21:51:03 -07:00
committed by Mononaut
parent 178bb960e9
commit 83bf9229e7
5 changed files with 43 additions and 38 deletions

View File

@@ -43,9 +43,9 @@ impl Eq for AuditTransaction {}
impl PartialOrd for AuditTransaction {
fn partial_cmp(&self, other: &AuditTransaction) -> Option<Ordering> {
if self.score == other.score {
return Some(self.uid.cmp(&other.uid));
Some(self.uid.cmp(&other.uid))
} else {
return self.score.partial_cmp(&other.score);
self.score.partial_cmp(&other.score)
}
}
}