summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-11-07 17:34:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-11-07 17:34:36 +0100
commita73dc372e7eaa21c8d177e73e58d91245d8812b4 (patch)
treed66634ee824533fb13a7e6affa77a84b8c581912
parent2d3c6dc29aa9075252962af2e99861a0c06e4135 (diff)
Fix clippy: Do not manually check for None
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-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| {