prettify the code a little bit more

This commit is contained in:
Sunshine 2022-09-01 19:25:43 -04:00
parent 199adfcfe8
commit 3c290acbfb
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1
1 changed files with 2 additions and 3 deletions

View File

@ -104,9 +104,8 @@ impl Options {
options.charset = Some(charset.to_string());
}
if let Some(domains) = app.get_many::<String>("domains") {
let final_list_of_domains: Vec<String> = domains.map(|v| v.clone()).collect::<Vec<_>>();
options.domains = Some(final_list_of_domains);
let list_of_domains: Vec<String> = domains.map(|v| v.clone()).collect::<Vec<_>>();
options.domains = Some(list_of_domains);
}
options.ignore_errors = app.is_present("ignore-errors");
options.exclude_domains = app.is_present("exclude-domains");