From 69d31e1fb4be6a7f01a4a9ff0337abafb75915c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=8D=9A=E6=96=87?= Date: Fri, 8 Nov 2024 23:43:10 +0800 Subject: [PATCH] make CompiledCode Sync and Send --- lib/src/backend/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/backend/mod.rs b/lib/src/backend/mod.rs index 8ad3b4b..eea388c 100644 --- a/lib/src/backend/mod.rs +++ b/lib/src/backend/mod.rs @@ -40,7 +40,7 @@ pub trait CodeGenBackend { fn get_module_bytes(&mut self, w: &mut dyn Write) -> io::Result<()>; } -pub trait CompiledCode: Display { +pub trait CompiledCode: Display + Send + Sync { fn get_bytes(&self, w: &mut dyn Write) -> io::Result<()>; fn as_any(&self) -> &dyn Any; }