mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-15 08:12:32 -06:00
fix: audio and other subsystems being dropped in App::new(), use Box::leak to ensure static ownership
This commit is contained in:
@@ -25,7 +25,7 @@ fn test_fruit_kind_increasing_score() {
|
||||
.collect::<Vec<_>>();
|
||||
kinds.sort_unstable_by_key(|(index, _)| *index);
|
||||
|
||||
assert_eq!(kinds.len(), FruitKind::COUNT as usize);
|
||||
assert_eq!(kinds.len(), FruitKind::COUNT);
|
||||
|
||||
// Check that the score increases as expected
|
||||
for window in kinds.windows(2) {
|
||||
|
||||
Reference in New Issue
Block a user