diff --git a/lib/compiler-singlepass/src/compiler.rs b/lib/compiler-singlepass/src/compiler.rs index 5e723a3cfc8..3669805bbae 100644 --- a/lib/compiler-singlepass/src/compiler.rs +++ b/lib/compiler-singlepass/src/compiler.rs @@ -129,9 +129,8 @@ impl Compiler for SinglepassCompiler { target, calling_convention, ) - .unwrap() }) - .collect::>() + .collect::, _>>()? .into_iter() .collect(); let (functions, fdes): (Vec, Vec<_>) = function_body_inputs @@ -212,8 +211,8 @@ impl Compiler for SinglepassCompiler { .values() .collect::>() .into_par_iter_if_rayon() - .map(|func_type| gen_std_trampoline(func_type, target, calling_convention).unwrap()) - .collect::>() + .map(|func_type| gen_std_trampoline(func_type, target, calling_convention)) + .collect::, _>>()? .into_iter() .collect::>(); @@ -228,9 +227,8 @@ impl Compiler for SinglepassCompiler { target, calling_convention, ) - .unwrap() }) - .collect::>() + .collect::, _>>()? .into_iter() .collect::>();