diff --git a/compiler/gen_wasm/src/wasm32_result.rs b/compiler/gen_wasm/src/wasm32_result.rs index 4db2984192..bd3988bd94 100644 --- a/compiler/gen_wasm/src/wasm32_result.rs +++ b/compiler/gen_wasm/src/wasm32_result.rs @@ -7,7 +7,6 @@ The user needs to analyse the Wasm module's memory to decode the result. use bumpalo::{collections::Vec, Bump}; use roc_builtins::bitcode::{FloatWidth, IntWidth}; use roc_mono::layout::{Builtin, Layout, UnionLayout}; -use roc_std::ReferenceCount; use roc_target::TargetInfo; use crate::wasm32_sized::Wasm32Sized; @@ -197,7 +196,7 @@ impl Wasm32Result for RocStr { } } -impl Wasm32Result for RocList { +impl Wasm32Result for RocList { fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) { build_wrapper_body_stack_memory(code_builder, main_function_index, 12) } diff --git a/compiler/gen_wasm/src/wasm32_sized.rs b/compiler/gen_wasm/src/wasm32_sized.rs index e7cfd7d9a0..914f97392b 100644 --- a/compiler/gen_wasm/src/wasm32_sized.rs +++ b/compiler/gen_wasm/src/wasm32_sized.rs @@ -1,4 +1,4 @@ -use roc_std::{ReferenceCount, RocDec, RocList, RocOrder, RocStr}; +use roc_std::{RocDec, RocList, RocOrder, RocStr}; pub trait Wasm32Sized: Sized { const SIZE_OF_WASM: usize; @@ -35,7 +35,7 @@ impl Wasm32Sized for RocStr { const ALIGN_OF_WASM: usize = 4; } -impl Wasm32Sized for RocList { +impl Wasm32Sized for RocList { const SIZE_OF_WASM: usize = 12; const ALIGN_OF_WASM: usize = 4; } diff --git a/compiler/test_gen/src/helpers/from_wasmer_memory.rs b/compiler/test_gen/src/helpers/from_wasmer_memory.rs index 20a05aab0c..489ab2d541 100644 --- a/compiler/test_gen/src/helpers/from_wasmer_memory.rs +++ b/compiler/test_gen/src/helpers/from_wasmer_memory.rs @@ -1,5 +1,5 @@ use roc_gen_wasm::wasm32_sized::Wasm32Sized; -use roc_std::{ReferenceCount, RocDec, RocList, RocOrder, RocStr}; +use roc_std::{RocDec, RocList, RocOrder, RocStr}; use std::convert::TryInto; pub trait FromWasmerMemory: Wasm32Sized { @@ -74,7 +74,7 @@ impl FromWasmerMemory for RocStr { } } -impl FromWasmerMemory for RocList { +impl FromWasmerMemory for RocList { fn decode(memory: &wasmer::Memory, offset: u32) -> Self { let bytes = ::decode(memory, offset);