summaryrefslogtreecommitdiffstats
path: root/tests/get.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get.rs')
-rw-r--r--tests/get.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/get.rs b/tests/get.rs
index 1856cfb..10e2927 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -31,11 +31,9 @@ struct Settings {
}
fn make() -> Config {
- let mut c = Config::default();
- c.merge(File::new("tests/Settings", FileFormat::Toml))
- .unwrap();
-
- c
+ let mut c = Config::builder();
+ c.add_source(File::new("tests/Settings", FileFormat::Toml));
+ c.build().unwrap()
}
#[test]