Update to walrus 0.12.0

This commit is contained in:
Nick Fitzgerald
2019-09-10 11:34:45 -07:00
parent 7cca2751c1
commit 582b733967
8 changed files with 10 additions and 11 deletions

View File

@ -539,7 +539,7 @@ impl Output {
.join(wasm_name)
.with_extension("wasm");
fs::create_dir_all(out_dir)?;
let wasm_bytes = self.module.emit_wasm()?;
let wasm_bytes = self.module.emit_wasm();
fs::write(&wasm_path, wasm_bytes)
.with_context(|_| format!("failed to write `{}`", wasm_path.display()))?;

View File

@ -165,7 +165,7 @@ impl Output {
imports = imports,
set_exports = set_exports,
);
let wasm = self.module.emit_wasm().expect("failed to serialize");
let wasm = self.module.emit_wasm();
let (bytes, booted) = if self.base64 {
(
format!(