Skip to content

Commit

Permalink
Fix other unwraps in compile iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
Firaenix committed Jul 13, 2024
1 parent 5450f71 commit 42ad918
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/compiler-singlepass/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<_, _>>();

Expand All @@ -227,9 +227,8 @@ impl Compiler for SinglepassCompiler {
target,
calling_convention,
)
.unwrap()
})
.collect::<Vec<_>>()
.collect::<Result<Vec<_>, _>>()?
.into_iter()
.collect::<PrimaryMap<FunctionIndex, FunctionBody>>();

Expand Down

0 comments on commit 42ad918

Please sign in to comment.