add clone to type

This commit is contained in:
vms 2020-07-26 23:53:09 +03:00
parent 951f21f593
commit c0d2d9fab1
2 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@ use crate::{
use std::str;
/// Represents the kind of type.
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
pub enum TypeKind {
/// A function type.
Function,
@ -18,7 +18,7 @@ pub enum TypeKind {
}
/// Represents a type.
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
pub enum Type {
/// A function type, like:
///

View File

@ -388,8 +388,7 @@ where
runtime.stack.push(InterfaceValue::I32(value_pointer));
runtime.stack.push(InterfaceValue::I32(value.len() as _));
*/
let offset =
record_lower_memory_(*instance, instruction, record_values)?;
let offset = record_lower_memory_(*instance, instruction, record_values)?;
runtime.stack.push(InterfaceValue::I32(offset));
Ok(())