From 066b59a304407d15e94b12c386bf764c7850701f Mon Sep 17 00:00:00 2001 From: debris Date: Thu, 1 Dec 2016 10:46:03 +0100 Subject: [PATCH] replaced unwrap with expect --- pbtc/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbtc/main.rs b/pbtc/main.rs index 67d7ed66..8a07f87e 100644 --- a/pbtc/main.rs +++ b/pbtc/main.rs @@ -50,7 +50,7 @@ fn run() -> Result<(), String> { logs::init(LOG_INFO, logs::DateAndColorLogFormatter); } } else { - env_logger::init().unwrap(); + env_logger::init().expect("Logger can be initialized only once"); } match matches.subcommand() {