mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
minidom: Handle Node::Comment in PartialEq
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
fd2bd2468d
commit
c9e6e3d095
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ impl PartialEq for Node {
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
(&Node::Element(ref elem1), &Node::Element(ref elem2)) => elem1 == elem2,
|
(&Node::Element(ref elem1), &Node::Element(ref elem2)) => elem1 == elem2,
|
||||||
(&Node::Text(ref text1), &Node::Text(ref text2)) => text1 == text2,
|
(&Node::Text(ref text1), &Node::Text(ref text2)) => text1 == text2,
|
||||||
|
#[cfg(feature = "comments")]
|
||||||
|
(&Node::Comment(ref text1), &Node::Comment(ref text2)) => text1 == text2,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue