Skip to content

Commit 766d626

Browse files
committed
Add support for trailing commas to the creation macro
1 parent 26af247 commit 766d626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iui/src/controls/create_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// }
1010
macro_rules! define_control {
1111
// Match first any attributes (incl. doc comments) and then the actual invocation
12-
{$(#[$attr:meta])* rust_type: $rust_type:ident, sys_type: $sys_type:ident } => {
12+
{$(#[$attr:meta])* rust_type: $rust_type:ident, sys_type: $sys_type:ident$(,)* } => {
1313
#[allow(non_snake_case)]
1414
// Include all attributes
1515
$(#[$attr])*

0 commit comments

Comments
 (0)