mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
add clone to type
This commit is contained in:
parent
951f21f593
commit
c0d2d9fab1
@ -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:
|
||||
///
|
||||
|
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user