Skip to content

Commit

Permalink
Support trailing commas in unsafe_methods macro
Browse files Browse the repository at this point in the history
Adds support for trailing commas in parameters lists of methods declared
with the unsafe_methods macro.
  • Loading branch information
andrewtbiehl authored and danielpclark committed Dec 17, 2023
1 parent 0f6a285 commit c26245d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ macro_rules! unsafe_methods {
$rtself_name: ident,
$(
fn $method_name: ident
($($arg_name: ident: $arg_type: ty),*) -> $return_type: ty $body: block
($($arg_name: ident: $arg_type: ty),* $(,)?) -> $return_type: ty $body: block
$(,)?
)*
) => {
Expand Down

0 comments on commit c26245d

Please sign in to comment.