Skip to content

Commit

Permalink
make CompiledCode Sync and Send
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwtw committed Nov 8, 2024
1 parent e689b47 commit 69d31e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 69d31e1

Please sign in to comment.