diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2019-04-30 14:22:34 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2019-04-30 14:29:06 +0200 |
commit | 6ee6bdc28da2538a0c4b0d297938a7941540c2bb (patch) | |
tree | f9da1d6843b50cedb8ced020bf1fa6f31300997c /src/main.rs | |
parent | 792e9e695353c94e16f199c2d846e53a178e2e4e (diff) |
Simplify code
Diffstat (limited to 'src/main.rs')
-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)?; |