summaryrefslogtreecommitdiffstats
path: root/tests/datetime.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-07-30 13:20:36 -0700
committerRyan Leckey <leckey.ryan@gmail.com>2017-07-30 13:20:36 -0700
commit14224be23dc2f253a240b85214927d97e1160669 (patch)
tree6f5b02b26aef5cf37bb14f32b9048165b67109ce /tests/datetime.rs
parent71f4b182d1e56febda64bd620ae0e0f65de333cd (diff)
Remove ConfigResult; close #36
Diffstat (limited to 'tests/datetime.rs')
-rw-r--r--tests/datetime.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/datetime.rs b/tests/datetime.rs
index f2dc9fe..8a50c01 100644
--- a/tests/datetime.rs
+++ b/tests/datetime.rs
@@ -2,7 +2,7 @@ extern crate config;
extern crate chrono;
use config::*;
-use chrono::{DateTime, Utc, TimeZone};
+use chrono::{DateTime, TimeZone, Utc};
fn make() -> Config {
Config::default()
@@ -14,12 +14,14 @@ fn make() -> Config {
"#,
FileFormat::Json,
))
+ .unwrap()
.merge(File::from_str(
r#"
yaml_datetime: 2017-06-12T10:58:30Z
"#,
FileFormat::Yaml,
))
+ .unwrap()
.merge(File::from_str(
r#"
toml_datetime = 2017-05-11T14:55:15Z
@@ -27,6 +29,7 @@ fn make() -> Config {
FileFormat::Toml,
))
.unwrap()
+ .clone()
}
#[test]