Skip to content

Commit

Permalink
Merge pull request #124 from Chia-Network/20241017-clippy
Browse files Browse the repository at this point in the history
Clippy
  • Loading branch information
emlowe authored Oct 17, 2024
2 parents f45786f + db7e253 commit 57dbf87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/classic/platform/argparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,13 @@ impl ArgumentParser {
lcopy.push(v);
params.insert(name, ArgumentValue::ArgArray(lcopy));
}
_ => match &optional_arg.options.default {
Some(v) => {
_ => {
if let Some(v) = &optional_arg.options.default {
let mut lcopy = l.clone();
lcopy.push(v.clone());
params.insert(name, ArgumentValue::ArgArray(lcopy));
}
None => {}
},
}
},
_ => {
if let Ok(v) = converter.convert(value) {
Expand Down

0 comments on commit 57dbf87

Please sign in to comment.