summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 4aeaa5e..fad750d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -87,11 +87,11 @@ impl GameState
fn update(
&mut self,
- dt: Duration)
+ _dt: Duration)
{
let ticks = self.timeman.update();
ticks.iter().for_each(|time| {
- solar_system::update_systems(self.solar_systems.iter_mut(), *time);
+ self.solar_systems.iter_mut().for_each(|system| { system.update(*time) });
});
}
}
@@ -111,7 +111,7 @@ impl ApplicationHandler for SystemicApp
fn window_event(
&mut self,
event_loop: &ActiveEventLoop,
- window_id: WindowId,
+ _window_id: WindowId,
event: winit::event::WindowEvent,
) {
let window = match &mut self.window {