convert ast::struct_def to a struct
This commit is contained in:
parent
530a113bfa
commit
1f5e9ff362
6 changed files with 12 additions and 10 deletions
|
@ -141,7 +141,7 @@ fn expand_auto_encode(
|
|||
|
||||
~[filter_attrs(*item), ser_impl]
|
||||
},
|
||||
ast::item_struct(@{ fields, _}, tps) => {
|
||||
ast::item_struct(@ast::struct_def { fields, _}, tps) => {
|
||||
let ser_impl = mk_struct_ser_impl(
|
||||
cx,
|
||||
item.span,
|
||||
|
@ -207,7 +207,7 @@ fn expand_auto_decode(
|
|||
|
||||
~[filter_attrs(*item), deser_impl]
|
||||
},
|
||||
ast::item_struct(@{ fields, _}, tps) => {
|
||||
ast::item_struct(@ast::struct_def { fields, _}, tps) => {
|
||||
let deser_impl = mk_struct_deser_impl(
|
||||
cx,
|
||||
item.span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue