From f8fabd0e364aaeaf1bbd882e2f69f81c4ad26f8e Mon Sep 17 00:00:00 2001 From: Isaac Clayton Date: Wed, 20 Apr 2022 18:47:28 +0200 Subject: [PATCH] Resolves #46, VM is now Send --- src/vm/vm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vm/vm.rs b/src/vm/vm.rs index 1d61c4d..95fe972 100644 --- a/src/vm/vm.rs +++ b/src/vm/vm.rs @@ -33,6 +33,8 @@ pub struct VM { pub ip: usize, } +unsafe impl Send for VM {} + // NOTE: use Opcode::same and Opcode.to_byte() rather than actual bytes // Don't worry, the compiler *should* get rid of this overhead and just use // bytes