summaryrefslogtreecommitdiffstats
path: root/examples/file-json/src/main.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-13 18:55:40 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-13 18:55:40 -0700
commit47ad966e064f842056e7c1b7abe8ef64d127f5be (patch)
tree4dd4e14168383dd818fe6add8ed0a5f4900d85b6 /examples/file-json/src/main.rs
parent1266d110ba31a9d0f9f4908a5a30291899ffc8fc (diff)
parent312f32905f518fa59e1daf3fc8224dadf584b484 (diff)
Merge branch 'serde'
Diffstat (limited to 'examples/file-json/src/main.rs')
-rw-r--r--examples/file-json/src/main.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/examples/file-json/src/main.rs b/examples/file-json/src/main.rs
deleted file mode 100644
index e4ff809..0000000
--- a/examples/file-json/src/main.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-extern crate config;
-
-fn main() {
- let mut c = config::Config::new();
-
- // Read configuration from "Settings.json"
- c.merge(config::File::new("Settings", config::FileFormat::Json)).unwrap();
-
- println!("debug = {:?}", c.get("debug"));
- println!("pi = {:?}", c.get("pi"));
- println!("weight = {:?}", c.get("weight"));
-}