diff options
Diffstat (limited to 'crates/types')
| -rw-r--r-- | crates/types/src/instructions.rs | 6 | ||||
| -rw-r--r-- | crates/types/src/lib.rs | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs index d5de50a..ba13979 100644 --- a/crates/types/src/instructions.rs +++ b/crates/types/src/instructions.rs @@ -10,7 +10,7 @@ pub enum BlockArgs { } /// Represents a memory immediate in a WebAssembly memory instruction. -#[derive(Debug, Copy, Clone, PartialEq, Eq)] +#[derive(Debug, Copy, Clone)] pub struct MemoryArg { pub mem_addr: MemAddr, pub align: u8, @@ -23,7 +23,7 @@ type BrTableLen = usize; type EndOffset = usize; type ElseOffset = usize; -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy)] pub enum ConstInstruction { I32Const(i32), I64Const(i64), @@ -46,7 +46,7 @@ pub enum ConstInstruction { /// This makes it easier to implement the label stack (we call it BlockFrameStack) iteratively. /// /// See <https://webassembly.github.io/spec/core/binary/instructions.html> -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy)] pub enum Instruction { // Custom Instructions BrLabel(LabelAddr), diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index 3729e1a..9af8e11 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -71,7 +71,7 @@ pub struct TinyWasmModule { /// A WebAssembly value. /// /// See <https://webassembly.github.io/spec/core/syntax/types.html#value-types> -#[derive(Clone, PartialEq, Copy)] +#[derive(Clone, Copy)] pub enum WasmValue { // Num types /// A 32-bit integer. @@ -253,7 +253,7 @@ impl WasmValue { } /// Type of a WebAssembly value. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum ValType { /// A 32-bit integer. I32, @@ -380,13 +380,13 @@ pub struct Global { pub init: ConstInstruction, } -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Debug, Clone, Copy, PartialEq)] pub struct GlobalType { pub mutable: bool, pub ty: ValType, } -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone)] pub struct TableType { pub element_type: ValType, pub size_initial: u32, @@ -406,7 +406,7 @@ impl TableType { #[derive(Debug, Clone)] /// Represents a memory's type. -#[derive(Copy, PartialEq, Eq, Hash)] +#[derive(Copy)] pub struct MemoryType { pub arch: MemoryArch, pub page_count_initial: u64, @@ -480,7 +480,7 @@ pub struct Element { pub ty: ValType, } -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy)] pub enum ElementKind { Passive, Active { table: TableAddr, offset: ConstInstruction }, |
