mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Merge branch 'remove-wildcard-pattern' into 'master'
Be explicit about quick-xml Events we are handling See merge request lumi/minidom-rs!24
This commit is contained in:
commit
309d84f2d0
1 changed files with 11 additions and 2 deletions
|
@ -295,7 +295,13 @@ impl Element {
|
||||||
Event::Eof => {
|
Event::Eof => {
|
||||||
bail!(ErrorKind::EndOfDocument);
|
bail!(ErrorKind::EndOfDocument);
|
||||||
},
|
},
|
||||||
_ => (), // TODO: may need more errors
|
Event::Text { .. } |
|
||||||
|
Event::End { .. } |
|
||||||
|
Event::Comment { .. } |
|
||||||
|
Event::CData { .. } |
|
||||||
|
Event::Decl { .. } |
|
||||||
|
Event::PI { .. } |
|
||||||
|
Event::DocType { .. } => (), // TODO: may need more errors
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -334,7 +340,10 @@ impl Element {
|
||||||
Event::Eof => {
|
Event::Eof => {
|
||||||
break;
|
break;
|
||||||
},
|
},
|
||||||
_ => (), // TODO: may need to implement more
|
Event::Comment { .. } |
|
||||||
|
Event::Decl { .. } |
|
||||||
|
Event::PI { .. } |
|
||||||
|
Event::DocType { .. } => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(stack.pop().unwrap())
|
Ok(stack.pop().unwrap())
|
||||||
|
|
Loading…
Reference in a new issue