Do some manual formatting in macros.

This commit is contained in:
Emmanuel Gil Peyrot 2018-12-29 18:29:11 +01:00
commit 96c8b05677
4 changed files with 47 additions and 44 deletions

View file

@ -138,7 +138,7 @@ fn parse_items(elem: Element, node: NodeName) -> Result<PubSubEvent, Error> {
Some(true) => {
return Err(Error::ParseError(
"Mix of item and retract in items element.",
))
));
}
}
items.push(Item::try_from(child.clone())?);
@ -149,7 +149,7 @@ fn parse_items(elem: Element, node: NodeName) -> Result<PubSubEvent, Error> {
Some(false) => {
return Err(Error::ParseError(
"Mix of item and retract in items element.",
))
));
}
}
check_no_children!(child, "retract");