From 79027cbcb7990dcfb94184e975a8b6fed9165c38 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Thu, 29 Apr 2021 17:35:08 -0700 Subject: [PATCH] [REVERT ME] Forze serialization --- lib/cli/src/commands/run.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli/src/commands/run.rs b/lib/cli/src/commands/run.rs index 3e0904d44e2..81ecafb4c1d 100644 --- a/lib/cli/src/commands/run.rs +++ b/lib/cli/src/commands/run.rs @@ -224,7 +224,9 @@ impl Run { let module_result: Result = if !self.disable_cache && contents.len() > 0x1000 { self.get_module_from_cache(&store, &contents, &engine_type, &compiler_type) } else { - Module::new(&store, &contents).map_err(|e| e.into()) + let module = Module::new(&store, &contents)?; + let _serialized = module.serialize()?; + Ok(module) }; #[cfg(not(feature = "cache"))] let module_result = Module::new(&store, &contents);