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
Unfortunately this isn't an issue with rustfmt. It's an issue with the compiler. Specifically the ast::Attribute::meta method, which is returning None for your second example.
rustfmt uses the value it gets back from that call here to format the attribute, otherwise it'll leave the attribute unformatted.
A real-world example from nutype:
This gets formatted just fine:
But this does not:
It looks like that rustfmt is not liking the
EMAIL_REGEX
here, but I'm not sure why.Tested on
rustfmt 1.8.0-nightly (3ed6e3cc69 2024-10-17)
.The text was updated successfully, but these errors were encountered: