macros: Merge generate_element_with_children!() into generate_element!().

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-28 16:45:13 +02:00
commit 3fb99988d5
13 changed files with 28 additions and 31 deletions

View file

@ -17,7 +17,7 @@ generate_attribute!(Subscription, "subscription", {
Remove => "remove",
}, Default = None);
generate_element_with_children!(
generate_element!(
/// Contact from the users contact list.
#[derive(PartialEq)]
Item, "item", ROSTER,
@ -38,7 +38,7 @@ generate_element_with_children!(
]
);
generate_element_with_children!(
generate_element!(
/// The contact list of the user.
Roster, "query", ROSTER,
attributes: [