Fix a few warnings.

This commit is contained in:
Dan Gohman
2017-08-28 17:17:41 -07:00
parent f905dc914b
commit 253f602a4c
2 changed files with 1 additions and 2 deletions

View File

@@ -2,7 +2,6 @@
extern crate cretonne; extern crate cretonne;
extern crate cton_reader; extern crate cton_reader;
extern crate cretonne_wasm; extern crate cretonne_wasm;
extern crate wasmparser;
extern crate docopt; extern crate docopt;
extern crate serde; extern crate serde;
#[macro_use] #[macro_use]

View File

@@ -129,7 +129,7 @@ fn handle_module(flag_verbose: bool,
}; };
let mut dummy_runtime = DummyRuntime::new(); let mut dummy_runtime = DummyRuntime::new();
let translation = { let translation = {
let mut runtime: &mut WasmRuntime = &mut dummy_runtime; let runtime: &mut WasmRuntime = &mut dummy_runtime;
match translate_module(&data, runtime) { match translate_module(&data, runtime) {
Ok(x) => x, Ok(x) => x,
Err(string) => { Err(string) => {