modules now get a owned Instance

This commit is contained in:
Sebastian Moser
2024-10-20 12:53:15 +02:00
parent 2c822641b2
commit 7033cc7e3b
2 changed files with 4 additions and 4 deletions

View File

@@ -16,11 +16,11 @@ pub struct EmptyModule {
}
impl Module for EmptyModule {
fn init(&mut self, instance: &Instance) -> MizeResult<()> {
fn init(&mut self, instance: Instance) -> MizeResult<()> {
println!("empty module fn init");
Ok(())
}
fn exit(&mut self, instance: &Instance) -> MizeResult<()> {
fn exit(&mut self, instance: Instance) -> MizeResult<()> {
println!("empty module fn exit");
Ok(())