fix: Remove unnecessary collection into a vec.

This commit is contained in:
Thayne McCombs 2023-01-18 23:36:54 -07:00
parent ccf8e69650
commit 424d6efcc0
1 changed files with 1 additions and 4 deletions

View File

@ -361,10 +361,7 @@ fn spawn_receiver(
// Push the handle of the spawned thread into the vector for later joining.
handles.push(handle);
}
let exit_codes = handles
.into_iter()
.map(|handle| handle.join().unwrap())
.collect::<Vec<_>>();
let exit_codes = handles.into_iter().map(|handle| handle.join().unwrap());
merge_exitcodes(exit_codes)
})
}