summaryrefslogtreecommitdiffstats
path: root/src/env.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-02-07 17:09:41 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-02-07 17:09:41 -0800
commit9239ee5c27eb6d87098b10cb8e1f4ea9465d1add (patch)
treef4a3fb1098a94ca1fc148360ab90434c06400b4f /src/env.rs
parent115fe07e2c11aa72e91a5ce9b028ed1c1ff7d806 (diff)
Add path resolution using a strict subset of JSONPath
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/env.rs b/src/env.rs
index 60e020e..dd237db 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -34,7 +34,9 @@ impl source::Source for Environment {
// Make prefix pattern
let prefix_pat = if let Some(ref prefix) = self.prefix {
Some(prefix.clone() + "_".into())
- } else { None };
+ } else {
+ None
+ };
for (key, value) in env::vars() {
let mut key = key.to_string();