Return impl Compiler from default_compiler to fix compilation with features

This commit is contained in:
Brandon Fish
2019-05-14 18:19:58 -05:00
parent 7e00bef6d3
commit bef9f1244a
4 changed files with 10 additions and 12 deletions

View File

@ -247,7 +247,7 @@ pub unsafe extern "C" fn wasmer_module_deserialize(
let serialized_module: &[u8] = &*(serialized_module as *const &[u8]);
match Artifact::deserialize(serialized_module) {
Ok(artifact) => match load_cache_with(artifact, default_compiler()) {
Ok(artifact) => match load_cache_with(artifact, &default_compiler()) {
Ok(deserialized_module) => {
*module = Box::into_raw(Box::new(deserialized_module)) as _;
wasmer_result_t::WASMER_OK