diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |