diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 08:58:50 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 08:58:50 +0300 |
commit | 1deab02129ee232aaa52ddccd11b413d390c5bb6 (patch) | |
tree | ca8aa1d635622950fdeae18186dcf59fc1a538f1 | |
parent | b8c9a90868dba0da10a755bf29877908e94e1fec (diff) | |
download | summain-rs-1deab02129ee232aaa52ddccd11b413d390c5bb6.tar.gz |
handle vec
-rw-r--r-- | src/bin/summain.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/summain.rs b/src/bin/summain.rs index 68ebebf..69bfcdf 100644 --- a/src/bin/summain.rs +++ b/src/bin/summain.rs @@ -8,8 +8,13 @@ async fn main() -> anyhow::Result<()> { let mut opt = Opt::from_args(); opt.pathnames[..].sort(); + let mut handles = vec![]; for filename in opt.pathnames.iter() { let h = report(&filename); + handles.push(h); + } + + for h in handles { h.await?; } |