Heavily refactored rename_all and switched to SCREAMING_SNAKE_CASE.

This commit is contained in:
Michael Mokrysz
2017-02-23 23:12:48 +00:00
parent fc94c5399a
commit 3b59d47e07
2 changed files with 60 additions and 45 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ impl<'a> Item<'a> {
field.attrs.rename_by_rule(variant.attrs.rename_all());
}
}
},
}
Body::Struct(_, ref mut fields) => {
for field in fields {
field.attrs.rename_by_rule(attrs.rename_all());