Fix warnings

This commit is contained in:
Sergey Pepyakin
2017-12-12 16:31:58 +01:00
parent c5c8af03e1
commit 4b2c100d1f
11 changed files with 61 additions and 157 deletions

View File

@@ -24,7 +24,7 @@ fn main() {
// - a module declaration
// - "main" module doesn't import native module(s) this is why we don't need to provide external native modules here
// This test shows how to implement native module https://github.com/NikVolf/parity-wasm/blob/master/src/interpreter/tests/basics.rs#L197
let module = program.add_module("main", module, &mut ()).expect("Failed to initialize module");
program.add_module("main", module, &mut ()).expect("Failed to initialize module");
// The argument should be parsable as a valid integer
let argument: i32 = args[2].parse().expect("Integer argument required");