mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 19:58:01 +00:00
refactor(codegen): Add ContainerAttrs::from_items
This commit is contained in:
@@ -86,7 +86,7 @@ fn serialize_body(
|
||||
) -> Result<P<ast::Expr>, Error> {
|
||||
// Note: While we don't have any container attributes, we still want to try to
|
||||
// parse them so we can report a proper error if we get passed an unknown attribute.
|
||||
let _ = try!(attr::get_container_attrs(cx, item));
|
||||
let _container_attrs = try!(attr::ContainerAttrs::from_item(cx, item));
|
||||
|
||||
match item.node {
|
||||
ast::ItemStruct(ref variant_data, _) => {
|
||||
|
||||
Reference in New Issue
Block a user