Use iterator instead of range

This commit is contained in:
2021-12-04 11:57:01 +01:00
parent e50b812aed
commit 5e52da6e6b

View File

@@ -26,7 +26,7 @@ impl BingoCard {
} }
// Check vertical lines // Check vertical lines
(0..5).any(|x| (0..5).all(|y| self.ticks[y][x])) (0..5).any(|x| self.ticks.iter().all(|row| row[x]))
// Diagonals do not count // Diagonals do not count
} }