Skip to content

Commit

Permalink
Allow trailing commas in check_scope macro
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Apr 27, 2023
1 parent 805c34f commit 85ab196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hint_processor/builtin_hint_processor/secp/ec_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,8 @@ mod tests {
bigint_str!(
"99065496658741969395000079476826955370154683653966841736214499259699304892273"
)
)
]
),
],
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ pub mod test_utils {
pub(crate) use add_segments;

macro_rules! check_scope {
( $exec_scope: expr, [ $( ($name: expr, $val: expr)),* ] ) => {
( $exec_scope: expr, [ $( ($name: expr, $val: expr)),*$(,)? ] $(,)? ) => {
$(
check_scope_value($exec_scope, $name, $val);
)*
Expand Down

0 comments on commit 85ab196

Please sign in to comment.