summaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 0d08cd6..526db8c 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -96,11 +96,8 @@ where
hb.register_escape_fn(handlebars::no_escape);
hb.register_template_string("package", format)?;
- for (i, package) in iter.enumerate() {
- print_package(out, &hb, i, package, config, flags)?;
- }
-
- Ok(())
+ iter.enumerate()
+ .try_for_each(|(i, package)| print_package(out, &hb, i, package, config, flags))
}
fn print_package(