Fix some mutability issues (WIP)

This commit is contained in:
Lachlan Sneff
2019-01-13 16:44:14 -05:00
parent 902df8b303
commit bef2b05354
11 changed files with 95 additions and 78 deletions

View File

@ -42,8 +42,7 @@ impl Module {
}
/// Instantiate a webassembly module with the provided imports.
pub fn instantiate(&self, imports: &Imports) -> Result<Instance, String>
{
pub fn instantiate(&self, imports: &mut Imports) -> Result<Instance, String> {
Instance::new(Rc::clone(&self.0), imports)
}
}