summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/env.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.rs b/src/env.rs
index 9302903..f1d3000 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -140,7 +140,7 @@ impl Environment {
/// Once list_separator is set, the type for string is [`Vec<String>`].
/// To switch the default type back to type Strings you need to provide the keys which should be [`Vec<String>`] using this function.
pub fn with_list_parse_key(mut self, key: &str) -> Self {
- if self.list_parse_keys == None {
+ if self.list_parse_keys.is_none() {
self.list_parse_keys = Some(vec![key.into()])
} else {
self.list_parse_keys = self.list_parse_keys.map(|mut keys| {