summaryrefslogtreecommitdiff
path: root/game/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/main.rs')
-rw-r--r--game/src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/game/src/main.rs b/game/src/main.rs
index aabe38a..53d17b7 100644
--- a/game/src/main.rs
+++ b/game/src/main.rs
@@ -13,11 +13,11 @@ impl Game {
fn new(window: Window) -> Self {
// Initial game state
let dungeon = Dungeon::new();
- Ok(Self {
+ Self {
window,
dungeon,
current_dir: None,
- })
+ }
}
fn player_dir(&mut self) -> Option<Direction> {
@@ -73,11 +73,9 @@ impl Game {
// Draw a single frame
self.window.draw_frame(&self.dungeon);
}
- Ok(())
}
}
-
#[derive(Parser)]
struct Args {
/// Enable vsync