summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-02-27 16:08:14 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-02-27 16:08:14 +0100
commitd2db1f7b3803c42619d91b85a66c12ace296bb21 (patch)
tree035db998b17a2446965ba199e092b49389cd268e /crates/types/src
parent4faaf5bb222947a95b854d733a3cbe3bf588b597 (diff)
chore: overall code cleanup
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-rw-r--r--crates/types/src/instructions.rs2
-rw-r--r--crates/types/src/value.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/types/src/instructions.rs b/crates/types/src/instructions.rs
index 537b8d7..9923116 100644
--- a/crates/types/src/instructions.rs
+++ b/crates/types/src/instructions.rs
@@ -94,7 +94,7 @@ pub enum Instruction {
// LocalGet + I32Const + I32Store => I32LocalGetConstStore + I32Const
// Also common, helps us skip the stack entirely.
// Has to be followed by an I32Const instruction
- // I32LocalGetConstStore { local: LocalAddr, offset: i32, mem_addr: MemAddr }, // I32Store + LocalGet + I32Const
+ // I32StoreLocal { local: LocalAddr, offset: i32, mem_addr: MemAddr },
// I64Xor + I64Const + I64RotL
// Commonly used by a few crypto libraries
diff --git a/crates/types/src/value.rs b/crates/types/src/value.rs
index df062ce..bcd43e5 100644
--- a/crates/types/src/value.rs
+++ b/crates/types/src/value.rs
@@ -142,7 +142,7 @@ impl ValType {
WasmValue::default_for(*self)
}
- pub(crate) fn to_byte(&self) -> u8 {
+ pub(crate) fn to_byte(self) -> u8 {
match self {
ValType::I32 => 0x7F,
ValType::I64 => 0x7E,