Revert "Module.deserialize - accept AsEngineRef"

This reverts commit 70ca66f803.
This commit is contained in:
Christoph Herzog
2022-12-27 16:22:31 +01:00
parent 752779b019
commit dc743dc65d

View File

@@ -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))
}