Skip to content

Commit

Permalink
macros: Fix non-simple macro usage without message (#2879)
Browse files Browse the repository at this point in the history
If something like `warn!(?foo)` and `warn!(name: "foo", ?foo)` works, then `warn!(name: "foo", target: "foo_events", ?foo)` should arguably also work. Before this change the more complicated variants of the macros however required a message argument, due to the usage of the `+` specifier in the macro definitions. This commit changes the `+` (1 or more) to `*` (0 or more), which matches how the `field` tokens are used in the simpler variants of the macro.
  • Loading branch information
Turbo87 authored Feb 16, 2024
1 parent 045b22e commit 0e3577f
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 120 deletions.
Loading

0 comments on commit 0e3577f

Please sign in to comment.