replace ==0 with is_empty

This commit is contained in:
Lionarius
2023-04-26 11:36:32 +03:00
parent 4802fbf5df
commit 49246af232

View File

@@ -64,7 +64,7 @@ impl Team {
} }
pub fn average_rating(&self, players: &[Player]) -> Rating { pub fn average_rating(&self, players: &[Player]) -> Rating {
if self.players.len() == 0 { if self.players.is_empty() {
return Rating::zero(); return Rating::zero();
} }