Skip to content

Commit 85ab196

Browse files
committed
Allow trailing commas in check_scope macro
1 parent 805c34f commit 85ab196

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hint_processor/builtin_hint_processor/secp/ec_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ mod tests {
702702
bigint_str!(
703703
"99065496658741969395000079476826955370154683653966841736214499259699304892273"
704704
)
705-
)
706-
]
705+
),
706+
],
707707
);
708708
}
709709

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ pub mod test_utils {
424424
pub(crate) use add_segments;
425425

426426
macro_rules! check_scope {
427-
( $exec_scope: expr, [ $( ($name: expr, $val: expr)),* ] ) => {
427+
( $exec_scope: expr, [ $( ($name: expr, $val: expr)),*$(,)? ] $(,)? ) => {
428428
$(
429429
check_scope_value($exec_scope, $name, $val);
430430
)*

0 commit comments

Comments
 (0)