diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:50:50 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 11:50:50 +0300 |
commit | 2e6bd0b306647e99a5b35dd1486682a687e3b847 (patch) | |
tree | 2dbc0543f933492c9096d22ecfff10985f153e27 | |
parent | ae8d02b35d8809ebba69231418fb411c47dda946 (diff) | |
download | summain-rs-2e6bd0b306647e99a5b35dd1486682a687e3b847.tar.gz |
collect results, then print
-rw-r--r-- | src/bin/summain.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs index 22d32c6..bd62e60 100644 --- a/src/bin/summain.rs +++ b/src/bin/summain.rs @@ -21,8 +21,12 @@ async fn async_main() -> anyhow::Result<()> { handles.push(tokio::spawn(async move { manifest(filename) })); } + let mut manifests = vec![]; for h in handles { - let m = h.await?.await?; + manifests.push(h.await?.await?); + } + + for m in manifests { print!("{}", serde_yaml::to_string(&m)?); } |