Skip to content

Commit 2cb9139

Browse files
committed
Run cargo fmt and update snapshot tests
1 parent 8cd8513 commit 2cb9139

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

  • sway-core/src/asm_generation/fuel/optimizations
  • test/src/e2e_vm_tests/test_programs/should_pass/stdlib/vec_encoding_decoding

sway-core/src/asm_generation/fuel/optimizations/misc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use super::super::abstract_instruction_set::AbstractInstructionSet;
22

33
use crate::asm_lang::{
4-
virtual_register::ConstantRegister, JumpType, Op, OrganizationalOp, VirtualOp,
5-
VirtualRegister,
4+
virtual_register::ConstantRegister, JumpType, Op, OrganizationalOp, VirtualOp, VirtualRegister,
65
};
76

87
use std::collections::HashSet;

test/src/e2e_vm_tests/test_programs/should_pass/stdlib/vec_encoding_decoding/stdout.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ output:
77
Building test/src/e2e_vm_tests/test_programs/should_pass/stdlib/vec_encoding_decoding
88
Compiling library std (test/src/e2e_vm_tests/reduced_std_libs/sway-lib-std-vec)
99
Compiling script vec_encoding_decoding (test/src/e2e_vm_tests/test_programs/should_pass/stdlib/vec_encoding_decoding)
10-
Finished release [optimized + fuel] target(s) [10.24 KB] in ???
10+
Finished release [optimized + fuel] target(s) [10.232 KB] in ???
1111
Running 6 tests, filtered 0 tests
1212

1313
tested -- vec_encoding_decoding
@@ -24,10 +24,10 @@ tested -- vec_encoding_decoding
2424
test nested_vec_non_trivial ... ok (???, 47654 gas)
2525
decoded log values:
2626
[[], [0], [0, 1], [0, 1, 2], [0, 1, 2, 3], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6, 7], [0, 1, 2, 3, 4, 5, 6, 7, 8]], log rb: 16171443785104013487
27-
test vec_encode_zst ... ok (???, 3465 gas)
27+
test vec_encode_zst ... ok (???, 3448 gas)
2828
decoded log values:
2929
[(), (), (), (), (), (), (), (), (), ()], log rb: 7172587179247292377
30-
test nested_vec_zst ... ok (???, 23061 gas)
30+
test nested_vec_zst ... ok (???, 22968 gas)
3131
decoded log values:
3232
[[], [()], [(), ()], [(), (), ()], [(), (), (), ()], [(), (), (), (), ()], [(), (), (), (), (), ()], [(), (), (), (), (), (), ()], [(), (), (), (), (), (), (), ()], [(), (), (), (), (), (), (), (), ()]], log rb: 15095959372321865352
3333

0 commit comments

Comments
 (0)