From 47f57faaf1f8d836ee9d4fc008d44beee2885d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Wed, 11 Oct 2023 20:11:14 +0200 Subject: [PATCH] Minor Fixes (#542) * Makes error type in declare_builtin_function!() parametric. * Enables JIT option regardless of feature in CLI. --- cli/src/main.rs | 2 +- src/program.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 30c8e2ca..cded744a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -131,7 +131,7 @@ fn main() { memory } }; - #[cfg(all(feature = "jit", not(target_os = "windows"), target_arch = "x86_64"))] + #[cfg(all(not(target_os = "windows"), target_arch = "x86_64"))] if matches.value_of("use") == Some("jit") { executable.jit_compile().unwrap(); } diff --git a/src/program.rs b/src/program.rs index fd74c98c..a16f32fe 100644 --- a/src/program.rs +++ b/src/program.rs @@ -296,7 +296,7 @@ macro_rules! declare_builtin_function { $arg_d:ident : u64, $arg_e:ident : u64, $memory_mapping:ident : &mut $MemoryMapping:ty, - ) -> Result> $rust:tt) => { + ) -> Result $rust:tt) => { $(#[$attr])* pub struct $name {} impl $name { @@ -309,7 +309,7 @@ macro_rules! declare_builtin_function { $arg_d: u64, $arg_e: u64, $memory_mapping: &mut $MemoryMapping, - ) -> Result> { + ) -> Result { $rust } /// VM interface