From a5c1d62cad5aaf7f7997aba9ae66878ed1d3626e Mon Sep 17 00:00:00 2001 From: Corwin Date: Mon, 17 Apr 2023 23:48:26 +0100 Subject: [PATCH] pointless capacity --- examples/the-purple-night/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);