From 21c3d01230a30ce70e2475763d280168428b449d Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Tue, 15 Oct 2024 11:40:39 -0600 Subject: [PATCH] cargo fmt --- src/invaders.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invaders.rs b/src/invaders.rs index dca4c1b..ad364fc 100644 --- a/src/invaders.rs +++ b/src/invaders.rs @@ -62,7 +62,8 @@ impl Invaders { } if downwards { let new_duration = max(self.move_timer.duration().as_millis() - 250, 250); - self.move_timer.set_duration(Duration::from_millis(new_duration as u64)); + self.move_timer + .set_duration(Duration::from_millis(new_duration as u64)); for invader in self.army.iter_mut() { invader.y += 1; }