summaryrefslogtreecommitdiffstats
path: root/src/env.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2018-07-02 15:33:38 -0700
committerRyan Leckey <leckey.ryan@gmail.com>2018-07-02 15:33:38 -0700
commitcbb9ef88ea6f6452614dd8bbffce7203b1358a55 (patch)
treefd4f67587f9a36c517a3a3f1ff7ef727697d5fef /src/env.rs
parentbbc78d85610dec79aa4af4dd360131c7880efb5f (diff)
Run rustfmt (nightly)
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/env.rs b/src/env.rs
index b26dc56..5beead5 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -1,7 +1,7 @@
-use std::env;
-use std::collections::HashMap;
use error::*;
use source::Source;
+use std::collections::HashMap;
+use std::env;
use value::{Value, ValueKind};
#[derive(Clone, Debug)]
@@ -64,7 +64,7 @@ impl Source for Environment {
let separator = match self.separator {
Some(ref separator) => separator,
- _ => ""
+ _ => "",
};
// Define a prefix pattern to test and exclude from keys
@@ -78,7 +78,10 @@ impl Source for Environment {
// Check for prefix
if let Some(ref prefix_pattern) = prefix_pattern {
- if key.to_lowercase().starts_with(&prefix_pattern.to_lowercase()) {
+ if key
+ .to_lowercase()
+ .starts_with(&prefix_pattern.to_lowercase())
+ {
// Remove this prefix from the key
key = key[prefix_pattern.len()..].to_string();
} else {