From 0bdd548eabd2d4b097b523c16a92cc4276dfbcd5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 17:31:05 +0100 Subject: [PATCH] Use unused result in test: set_logger() --- src/storage/file/id.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/storage/file/id.rs b/src/storage/file/id.rs index f89eb551..4fcdeb45 100644 --- a/src/storage/file/id.rs +++ b/src/storage/file/id.rs @@ -169,7 +169,12 @@ mod test { let lvl = LogLevelFilter::Debug; max_log_lvl.set(lvl); Box::new(ImagLogger::new(lvl.to_log_level().unwrap())) - }); + }) + .map_err(|e| { + println!("Error setting logger: {:?}", e); + assert!(false); + }) + .ok(); debug!("Init logger for test"); }