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