clippy --fix fixes

This commit is contained in:
Folkert 2023-04-21 12:05:51 +02:00
parent 9973d4b8d2
commit 4cd8f0a056
57 changed files with 366 additions and 374 deletions

View file

@ -37,7 +37,7 @@ fn test_loop_help(end: i32, expected: i32) {
// loop <void>
buf.push(OpCode::LOOP as u8);
buf.push(ValueType::VOID as u8);
buf.push(ValueType::VOID);
// local.get $i
buf.push(OpCode::GETLOCAL as u8);
@ -135,7 +135,7 @@ fn test_if_else_help(condition: i32, expected: i32) {
// if <blocktype>
buf.push(OpCode::IF as u8);
buf.push(ValueType::VOID as u8);
buf.push(ValueType::VOID);
// i32.const 111
buf.push(OpCode::I32CONST as u8);
@ -599,7 +599,7 @@ fn test_call_return_no_args() {
ValueType::I32 as u8,
OpCode::BLOCK as u8, /* */
// call from inside a block. callee's implicit return should still work correctly.
ValueType::VOID as u8,
ValueType::VOID,
OpCode::CALL as u8,
1, // function 1
OpCode::SETLOCAL as u8,