From a4428f01b61e9fc0154e85c38ebe513b7a255ceb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 1 Jun 2018 07:47:47 -0700 Subject: [PATCH] Update parity-wasm dependency --- crates/cli-support/Cargo.toml | 2 +- crates/cli-support/src/wasm2es6js.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index 98a626d3..4d09a434 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -13,7 +13,7 @@ Shared support for the wasm-bindgen-cli package, an internal dependency [dependencies] base64 = "0.9" failure = "0.1" -parity-wasm = "0.30" +parity-wasm = "0.31" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" diff --git a/crates/cli-support/src/wasm2es6js.rs b/crates/cli-support/src/wasm2es6js.rs index 727b0d83..d58b502c 100644 --- a/crates/cli-support/src/wasm2es6js.rs +++ b/crates/cli-support/src/wasm2es6js.rs @@ -320,11 +320,11 @@ impl Output { if offset.len() != 2 { bail!("don't recognize data offset {:?}", offset) } - if offset[1] != Opcode::End { + if offset[1] != Instruction::End { bail!("don't recognize data offset {:?}", offset) } let offset = match offset[0] { - Opcode::I32Const(x) => x, + Instruction::I32Const(x) => x, _ => bail!("don't recognize data offset {:?}", offset), };