Skip to content

Commit

Permalink
macros: Fix non-simple macro usage without message
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 committed Feb 14, 2024
1 parent 5cb8922 commit 107d2d6
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 120 deletions.
Loading

0 comments on commit 107d2d6

Please sign in to comment.