Add safety comments
This commit is contained in:
		
							parent
							
								
									e3f4c33f03
								
							
						
					
					
						commit
						e61ae59e53
					
				@ -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