summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2022-02-02 19:08:44 +0100
committerTom Barrett <tom@tombarrett.xyz>2022-02-02 19:08:44 +0100
commitceb3eff116f9ddf8dcb71a0a77efb63531f75ab2 (patch)
treec818ad7241797fa72e0cb802f09c9a1b296e1fb0 /src/main.rs
parent8cdbe7352c4846eb339358bcca6083f747e27721 (diff)
2022 updateHEADmaster
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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)
}