Update parity-wasm dependency

This commit is contained in:
Alex Crichton 2018-06-01 07:47:47 -07:00
parent ba4697bfb1
commit a4428f01b6
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

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