diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2018-07-02 15:33:38 -0700 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2018-07-02 15:33:38 -0700 |
commit | cbb9ef88ea6f6452614dd8bbffce7203b1358a55 (patch) | |
tree | fd4f67587f9a36c517a3a3f1ff7ef727697d5fef /src/env.rs | |
parent | bbc78d85610dec79aa4af4dd360131c7880efb5f (diff) |
Run rustfmt (nightly)
Diffstat (limited to 'src/env.rs')
-rw-r--r-- | src/env.rs | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 { |