You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Asked in the serde room in case this was something specific to the json macro. Looks like the issue is only reproduce-able when the result of the macro is assigned in a let statement. If the json! macro is passed into a function or used as a return expression in a block or function, rustfmt-nightly doesn't mangle the macro body.
The text was updated successfully, but these errors were encountered:
I noticed the deprecation warning from rustfmt and install rustfmt-nightly 0.3.4. Seems to work well except it clobbers some of my macro bodies.
See https://gist.github.com/anonymous/893e7bf6b3e8b3841052098edc07c25e for an example.
Asked in the serde room in case this was something specific to the json macro. Looks like the issue is only reproduce-able when the result of the macro is assigned in a let statement. If the json! macro is passed into a function or used as a return expression in a block or function, rustfmt-nightly doesn't mangle the macro body.
The text was updated successfully, but these errors were encountered: