Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use curly braces for tuple_impl! calls #734

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

casey
Copy link
Contributor

@casey casey commented Dec 26, 2023

Macros can be called with (), {}, and []. Using {} is slightly more idiomatic for things that expand to items (impl blocks, struct definitions, etc), and has the benefit that cargo fmt doesn't try to format them.

@cberner cberner merged commit 4679855 into cberner:master Dec 26, 2023
3 checks passed
@cberner
Copy link
Owner

cberner commented Dec 26, 2023

Ah nice!

@casey casey deleted the use-curly-braces-for-tuple-impl branch December 26, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants