diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-11-07 17:34:36 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-11-07 17:34:36 +0100 |
commit | a73dc372e7eaa21c8d177e73e58d91245d8812b4 (patch) | |
tree | d66634ee824533fb13a7e6affa77a84b8c581912 | |
parent | 2d3c6dc29aa9075252962af2e99861a0c06e4135 (diff) |
Fix clippy: Do not manually check for None
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/env.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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| { |