From ceb3eff116f9ddf8dcb71a0a77efb63531f75ab2 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Wed, 2 Feb 2022 19:08:44 +0100 Subject: 2022 update --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e2465d9..6ec13db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use ggez::{event, ContextBuilder, GameResult}; use pax_romana::game::Game; fn main() -> GameResult { - let (ref mut context, ref mut event_loop) = ContextBuilder::new("pax-romana", "tom barrett") + let (mut context, event_loop) = ContextBuilder::new("pax-romana", "tom barrett") .window_setup( WindowSetup::default() .title("pax_romana") @@ -13,7 +13,7 @@ fn main() -> GameResult { .add_resource_path("./resources") .build()?; - let game = &mut Game::new(context)?; + let game = Game::new(&mut context)?; event::run(context, event_loop, game) } -- cgit v1.2.3