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
That's a cool suggestion, thank you for the issue! Marker is currently sadly lacking a representation for attributes (rust-marker/marker#51), but I want to definitely support such lints.
Lint explanation
It would be nice to lint Serde macros for unnecessary duplication.
For example:
default
on anOption
(Option
is automaticallydefault
)rename = "SomeThing"
that matches therename_all = "PascalCase"
on the structrename_all = "x"
if that would result in lessrename = "y"
linesExample code
Notes
The output/expansion of the macro is not relevent for these lints.
The text was updated successfully, but these errors were encountered: