jingle_message, muc, presence, version: Always use the check_no_attributes macro.
This commit is contained in:
parent
f2f8de773b
commit
e0438f9b88
5 changed files with 9 additions and 37 deletions
|
|
@ -23,9 +23,7 @@ impl TryFrom<Element> for Version {
|
|||
if !elem.is("query", ns::VERSION) {
|
||||
return Err(Error::ParseError("This is not a version element."));
|
||||
}
|
||||
for _ in elem.attrs() {
|
||||
return Err(Error::ParseError("Unknown child in version element."));
|
||||
}
|
||||
check_no_attributes!(elem, "version");
|
||||
let mut name = None;
|
||||
let mut version = None;
|
||||
let mut os = None;
|
||||
|
|
|
|||
Loading…
Reference in a new issue