Replies: 1 comment
-
Formatting the inside of macros is difficult because there can be valid rust code that people want formatted, a DSL people don't want formatted, or even both. I don't envy rustfmt in having to deal with it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is kind of two questions in one.
If I try to use the arg! macro like
rustfmt with default settings will turn it into
If another piece is added, rustfmt leaves it alone
Do you think this is an issue with rustfmt or something with the macro?

I seriously do not envy anyone writing macros like these... 😅
For anyone who understands how it works, can you explain why this is the case?
Is it just a limitation of how macros work, or something else?
Beta Was this translation helpful? Give feedback.
All reactions