summaryrefslogtreecommitdiffstats
path: root/examples/hierarchical-env/src/settings.rs
diff options
context:
space:
mode:
authorChristian Fochler <mail@christianfochler.de>2018-01-29 08:05:59 +0100
committerChristian Fochler <mail@christianfochler.de>2018-01-29 08:05:59 +0100
commit5ba6b7a437912ff40a216d3f99f963998b408911 (patch)
tree1b54afaf9c5cce2d9bb7b3a7f2867ae95ca4d568 /examples/hierarchical-env/src/settings.rs
parent52ed0762dff1514e0cb970528c6432caea479444 (diff)
add default prefix separator
- no need to add '_' to the prefix
Diffstat (limited to 'examples/hierarchical-env/src/settings.rs')
-rw-r--r--examples/hierarchical-env/src/settings.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hierarchical-env/src/settings.rs b/examples/hierarchical-env/src/settings.rs
index 75a9186..bde5819 100644
--- a/examples/hierarchical-env/src/settings.rs
+++ b/examples/hierarchical-env/src/settings.rs
@@ -55,7 +55,7 @@ impl Settings {
// Add in settings from the environment (with a prefix of APP_)
// Eg.. `APP_DEBUG=1 ./target/app` would set the `debug` key
- s.merge(Environment::with_prefix("app_"))?;
+ s.merge(Environment::with_prefix("app"))?;
// You may also programmatically change settings
s.set("database.url", "postgres://")?;