run cargo fmt

This commit is contained in:
Brendan Hansknecht 2022-03-11 19:29:34 -08:00
parent 8b7acb5c93
commit bc492fa22b
2 changed files with 16 additions and 2 deletions

View file

@ -665,7 +665,8 @@ impl<'a> WasmBackend<'a> {
bytes[11] = 0x80 | (len as u8);
// Transform into two integers, to minimise number of instructions
let bytes_split: &([u8; 8], [u8; 4]) = unsafe { std::mem::transmute(&bytes) };
let bytes_split: &([u8; 8], [u8; 4]) =
unsafe { std::mem::transmute(&bytes) };
let int64 = i64::from_le_bytes(bytes_split.0);
let int32 = i32::from_le_bytes(bytes_split.1);

View file

@ -311,7 +311,20 @@ fn small_str_zeroed_literal() {
functionWithReusedSpace True
"#
),
[0x4a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0b1000_0001],
[
0x4a,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0b1000_0001
],
[u8; 12]
);
}