mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
add missed RocRefcounted
This commit is contained in:
parent
3198ed5c8e
commit
0533578562
1 changed files with 4 additions and 1 deletions
|
@ -106,7 +106,10 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: FromWasm32Memory + Clone> FromWasm32Memory for RocBox<T> {
|
||||
impl<T: FromWasm32Memory + Clone> FromWasm32Memory for RocBox<T>
|
||||
where
|
||||
T: RocRefcounted,
|
||||
{
|
||||
fn decode(memory: &[u8], offset: u32) -> Self {
|
||||
let ptr = <u32 as FromWasm32Memory>::decode(memory, offset + 4 * Builtin::WRAPPER_PTR);
|
||||
debug_assert_ne!(ptr, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue