diff options
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 04c165c..1f34d2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -186,7 +186,7 @@ fn app() -> Result<()> { frontend.list_problems(problems)?; }, ("compare", Some(mtch)) => { - let repos = mtch.values_of("compare-distros").unwrap().map(|s| Repo::new(String::from(s))).collect(); + let repos = mtch.values_of("compare-distros").unwrap().map(String::from).map(Repo::new).collect(); let file_path = mtch.value_of("compare-list").unwrap(); // safe by clap let content = ::std::fs::read_to_string(file_path).map_err(Error::from)?; let pkgs : Vec<ComparePackage> = deserialize_package_list(content, file_path)?; |