about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs
index 8d7222106c52..e09563b16cc7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,9 +25,10 @@ mod game;
 #[macro_use]
 mod types;
 mod entities;
+#[macro_use]
+mod util;
 mod messages;
 mod settings;
-mod util;
 
 use clap::App;
 use game::Game;
@@ -49,13 +50,9 @@ fn init(
     h: u16,
 ) {
     panic::set_hook(if settings.logging.print_backtrace {
-        Box::new(|info| {
-            (error!("{}\n{:#?}", info, Backtrace::new()))
-        })
+        Box::new(|info| (error!("{}\n{:#?}", info, Backtrace::new())))
     } else {
-        Box::new(|info| {
-            (error!("{}\n{:#?}", info, Backtrace::new()))
-        })
+        Box::new(|info| (error!("{}\n{:#?}", info, Backtrace::new())))
     });
 
     let game = Game::new(settings, stdout, stdin, w, h);