Skip to content

Commit 8e27088

Browse files
committed
style: apply nightly rustfmt to multiple-overflow-entries DYNCALL test
Fix two formatting issues flagged by rustfmt nightly: - Remove extra alignment spaces in Operation::Push comment lines - Collapse assert_ne!(recorded_overflow_addr, ZERO, ...) onto two lines
1 parent fd04314 commit 8e27088

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

processor/src/trace/tests/decoder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,8 @@ fn decoder_dyncall_with_multiple_overflow_entries_records_correct_overflow_addr(
10271027
Operation::Drop,
10281028
Operation::Drop,
10291029
// Push exactly 2 elements to create 2 overflow entries.
1030-
Operation::Push(ZERO), // depth=17, overflow[0]=0 (clk=T1)
1031-
Operation::Push(HASH_ADDR), // depth=18, overflow[1]=0 (clk=T2)
1030+
Operation::Push(ZERO), // depth=17, overflow[0]=0 (clk=T1)
1031+
Operation::Push(HASH_ADDR), // depth=18, overflow[1]=0 (clk=T2)
10321032
],
10331033
Vec::new(),
10341034
)
@@ -1083,8 +1083,7 @@ fn decoder_dyncall_with_multiple_overflow_entries_records_correct_overflow_addr(
10831083
// Asserting ≠ ZERO verifies we got the correct second-to-last clock, not ZERO (which
10841084
// would indicate no overflow entry remained after the pop).
10851085
assert_ne!(
1086-
recorded_overflow_addr,
1087-
ZERO,
1086+
recorded_overflow_addr, ZERO,
10881087
"parent_next_overflow_addr must be the second-to-last overflow entry's clock \
10891088
(nonzero); ZERO would indicate either a missing overflow entry or the buggy \
10901089
last_update_clk_in_current_ctx() path when there is only 1 entry"

0 commit comments

Comments
 (0)