mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-17 01:28:44 +00:00
Make types more consistent
This commit is contained in:
@@ -19,13 +19,10 @@ pub trait CompiledModule: DowncastSync {
|
||||
) -> Result<(), InstantiationError>;
|
||||
|
||||
/// Return a reference-counting pointer to a module.
|
||||
fn module(&self) -> &Arc<Module>;
|
||||
fn module(&self) -> &Module;
|
||||
|
||||
/// Return a reference-counting pointer to a module.
|
||||
fn module_mut(&mut self) -> &mut Arc<Module>;
|
||||
|
||||
/// Return a reference to a module.
|
||||
fn module_ref(&self) -> &Module;
|
||||
fn module_mut(&mut self) -> &mut Module;
|
||||
}
|
||||
|
||||
impl_downcast!(sync CompiledModule); // `sync` => also produce `Arc` downcasts.
|
||||
|
||||
Reference in New Issue
Block a user