Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Oct 15, 2024
1 parent 22ac2df commit 21c3d01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/invaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 21c3d01

Please sign in to comment.