Skip to content

Commit a73dc37

Browse files
committed
Fix clippy: Do not manually check for None
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 2d3c6dc commit a73dc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Environment {
140140
/// Once list_separator is set, the type for string is [`Vec<String>`].
141141
/// To switch the default type back to type Strings you need to provide the keys which should be [`Vec<String>`] using this function.
142142
pub fn with_list_parse_key(mut self, key: &str) -> Self {
143-
if self.list_parse_keys == None {
143+
if self.list_parse_keys.is_none() {
144144
self.list_parse_keys = Some(vec![key.into()])
145145
} else {
146146
self.list_parse_keys = self.list_parse_keys.map(|mut keys| {

0 commit comments

Comments
 (0)