code formatting

This commit is contained in:
Frank Rehberger
2017-08-13 00:50:52 +02:00
parent 862ccaf89d
commit 9fe0fb6aa5

View File

@ -75,10 +75,10 @@ fn interpreter_accumulate_u8() {
let execution_params = ExecutionParams::from(args); let execution_params = ExecutionParams::from(args);
let retval = module let retval = module
.execute_export(FUNCTION_NAME, execution_params) .execute_export(FUNCTION_NAME, execution_params)
.expect(""); .expect("Failed to execute function");
// For verification, repeat accumulation using native code // For verification, repeat accumulation using native code
let accu = BUF.into_iter().fold(0 as i32, |a, b| a as i32 + *b as i32); let accu = BUF.into_iter().fold(0 as i32, |a, b| a + *b as i32);
let exp_retval: Option<RuntimeValue> = Some(RuntimeValue::I32(accu)); let exp_retval: Option<RuntimeValue> = Some(RuntimeValue::I32(accu));
// Verify calculation from WebAssembly runtime is identical to expected result // Verify calculation from WebAssembly runtime is identical to expected result