Update wasmparser dependency (#912)

* Update wasmparser dependency

Closes #905

* Fix lightbeam compilation
This commit is contained in:
Alex Crichton
2020-02-06 12:25:32 -06:00
committed by GitHub
parent c860edc14f
commit 9dffaf9d57
12 changed files with 111 additions and 185 deletions

View File

@@ -19,8 +19,7 @@ pub enum Error {
impl From<BinaryReaderError> for Error {
fn from(e: BinaryReaderError) -> Self {
let BinaryReaderError { message, offset } = e;
Error::Input(format!("At wasm offset {}: {}", offset, message))
Error::Input(format!("At wasm offset {}: {}", e.offset(), e.message()))
}
}