Skip to content

Commit b28990e

Browse files
authored
feat: Allow trailing comma in callback_labels. (#325)
1 parent 8be2090 commit b28990e

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_mod_scripting_core/src

1 file changed

+2
-2
lines changed

crates/bevy_mod_scripting_core/src/event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl CallbackLabel {
5757
#[macro_export]
5858
/// Creates a set of callback labels
5959
macro_rules! callback_labels {
60-
($($name:ident => $label:expr),*) => {
60+
($($name:ident => $label:expr),* $(,)?) => {
6161

6262
$(
6363
#[doc = "A callback label for the event: "]
@@ -74,7 +74,7 @@ macro_rules! callback_labels {
7474

7575
callback_labels!(
7676
OnScriptLoaded => "on_script_loaded",
77-
OnScriptUnloaded => "on_script_unloaded"
77+
OnScriptUnloaded => "on_script_unloaded",
7878
);
7979

8080
/// A trait for types that can be converted into a callback label

0 commit comments

Comments
 (0)