From 9ee7198e455a8b77a4f675a45855ad0271794b72 Mon Sep 17 00:00:00 2001 From: Folkert Date: Tue, 25 Jan 2022 15:23:53 +0100 Subject: [PATCH] and another --- compiler/test_gen/src/helpers/wasm.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/test_gen/src/helpers/wasm.rs b/compiler/test_gen/src/helpers/wasm.rs index c7d6f5cfb2..f68f6b5da8 100644 --- a/compiler/test_gen/src/helpers/wasm.rs +++ b/compiler/test_gen/src/helpers/wasm.rs @@ -119,12 +119,16 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32TestResult>( debug_assert_eq!(exposed_to_host.values.len(), 1); - let exposed_to_host = exposed_to_host.values.keys().copied().collect::>(); + let exposed_to_host = exposed_to_host + .values + .keys() + .copied() + .collect::>(); let env = roc_gen_wasm::Env { arena, module_id, - exposed_to_host.values, + exposed_to_host, }; let (mut module, called_preload_fns, main_fn_index) =