mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 22:58:18 +00:00
Revert "Module.deserialize - accept AsEngineRef"
This reverts commit 70ca66f803.
This commit is contained in:
@@ -267,11 +267,11 @@ impl Module {
|
||||
/// # }
|
||||
/// ```
|
||||
pub unsafe fn deserialize(
|
||||
engine: &impl AsEngineRef,
|
||||
store: &impl AsStoreRef,
|
||||
bytes: impl IntoBytes,
|
||||
) -> Result<Self, DeserializeError> {
|
||||
let bytes = bytes.into_bytes();
|
||||
let artifact = engine.as_engine_ref().engine().deserialize(&bytes)?;
|
||||
let artifact = store.as_store_ref().engine().deserialize(&bytes)?;
|
||||
Ok(Self::from_artifact(artifact))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user