fix: audio and other subsystems being dropped in App::new(), use Box::leak to ensure static ownership

This commit is contained in:
2025-08-12 13:07:17 -05:00
parent b91f70cf2f
commit c489f32908
4 changed files with 32 additions and 47 deletions

View File

@@ -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) {