replace ==0 with is_empty
This commit is contained in:
@@ -64,7 +64,7 @@ impl Team {
|
||||
}
|
||||
|
||||
pub fn average_rating(&self, players: &[Player]) -> Rating {
|
||||
if self.players.len() == 0 {
|
||||
if self.players.is_empty() {
|
||||
return Rating::zero();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user