diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index b6ec156a..e7467c9f 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -1978,7 +1978,7 @@ impl<'a> Game<'a> { self.particles.insert(new_particle); } - let mut remove = Vec::with_capacity(10); + let mut remove = Vec::new(); for (idx, enemy) in self.enemies.iter_mut() { if enemy.entity.position.x < self.offset.x - 8 { remove.push(idx);