From 374d865251ada5e06a61bf87a3a48998bc0b9f32 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Mon, 22 Feb 2016 23:04:35 +0100 Subject: [PATCH] unwrap result from fill_config in tests to silence the warnings and let test fail if fill_config fails --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 9fb9b964..b0c51f15 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -570,7 +570,7 @@ rust-playpen = { enabled = true } # ... "##; - config.fill_config(toml); + config.fill_config(toml).expect("Error while parsing the config"); assert_eq!(config.title(), "mdBook"); assert_eq!(config.description(), "This is a command line utility to generate books from markdown files"); @@ -594,7 +594,7 @@ rust-playpen = { enabled = true } let toml = r#""#; - config.fill_config(toml); + config.fill_config(toml).expect("Error while parsing the config");; assert_eq!(config.title(), "Book"); assert_eq!(config.description(), "");