Update to the rustfmt in rust 1.28, which is now stable.
Also, rustfmt's --write-mode=check is now named --check.
This commit is contained in:
@@ -248,10 +248,8 @@ mod tests {
|
||||
// )
|
||||
const BODY: [u8; 7] = [
|
||||
0x00, // local decl count
|
||||
0x20,
|
||||
0x00, // get_local 0
|
||||
0x41,
|
||||
0x01, // i32.const 1
|
||||
0x20, 0x00, // get_local 0
|
||||
0x41, 0x01, // i32.const 1
|
||||
0x6a, // i32.add
|
||||
0x0b, // end
|
||||
];
|
||||
@@ -280,10 +278,8 @@ mod tests {
|
||||
// )
|
||||
const BODY: [u8; 8] = [
|
||||
0x00, // local decl count
|
||||
0x20,
|
||||
0x00, // get_local 0
|
||||
0x41,
|
||||
0x01, // i32.const 1
|
||||
0x20, 0x00, // get_local 0
|
||||
0x41, 0x01, // i32.const 1
|
||||
0x6a, // i32.add
|
||||
0x0f, // return
|
||||
0x0b, // end
|
||||
@@ -318,19 +314,13 @@ mod tests {
|
||||
// )
|
||||
const BODY: [u8; 16] = [
|
||||
0x01, // 1 local decl.
|
||||
0x01,
|
||||
0x7f, // 1 i32 local.
|
||||
0x03,
|
||||
0x7f, // loop i32
|
||||
0x20,
|
||||
0x00, // get_local 0
|
||||
0x41,
|
||||
0x01, // i32.const 0
|
||||
0x01, 0x7f, // 1 i32 local.
|
||||
0x03, 0x7f, // loop i32
|
||||
0x20, 0x00, // get_local 0
|
||||
0x41, 0x01, // i32.const 0
|
||||
0x6a, // i32.add
|
||||
0x21,
|
||||
0x00, // set_local 0
|
||||
0x0c,
|
||||
0x00, // br 0
|
||||
0x21, 0x00, // set_local 0
|
||||
0x0c, 0x00, // br 0
|
||||
0x0b, // end
|
||||
0x0b, // end
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user