Fix other unwraps in compile iterators

This commit is contained in:
Nick Carton
2024-07-13 22:09:44 +10:00
parent 5450f7122e
commit 42ad918bf2

View File

@ -211,8 +211,8 @@ impl Compiler for SinglepassCompiler {
.values()
.collect::<Vec<_>>()
.into_par_iter_if_rayon()
.map(|func_type| gen_std_trampoline(func_type, target, calling_convention).unwrap())
.collect::<Vec<_>>()
.map(|func_type| gen_std_trampoline(func_type, target, calling_convention))
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect::<PrimaryMap<_, _>>();
@ -227,9 +227,8 @@ impl Compiler for SinglepassCompiler {
target,
calling_convention,
)
.unwrap()
})
.collect::<Vec<_>>()
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect::<PrimaryMap<FunctionIndex, FunctionBody>>();