summaryrefslogtreecommitdiffstats
path: root/examples/file-json/src/main.rs
diff options
context:
space:
mode:
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"));
-}