From 3c290acbfbf52e49683c7bdb5f76a320c7b596a1 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Thu, 1 Sep 2022 19:25:43 -0400 Subject: [PATCH] prettify the code a little bit more --- src/opts.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/opts.rs b/src/opts.rs index 670a170..79c4174 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -104,9 +104,8 @@ impl Options { options.charset = Some(charset.to_string()); } if let Some(domains) = app.get_many::("domains") { - let final_list_of_domains: Vec = domains.map(|v| v.clone()).collect::>(); - - options.domains = Some(final_list_of_domains); + let list_of_domains: Vec = domains.map(|v| v.clone()).collect::>(); + options.domains = Some(list_of_domains); } options.ignore_errors = app.is_present("ignore-errors"); options.exclude_domains = app.is_present("exclude-domains");