minidom: clippy pass

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-12-14 18:12:45 +01:00
commit 60ebcb8c8a
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 24 additions and 25 deletions

View file

@ -201,8 +201,8 @@ impl From<ElementBuilder> for Node {
impl PartialEq for Node {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(&Node::Element(ref elem1), &Node::Element(ref elem2)) => elem1 == elem2,
(&Node::Text(ref text1), &Node::Text(ref text2)) => text1 == text2,
(Node::Element(elem1), Node::Element(elem2)) => elem1 == elem2,
(Node::Text(text1), Node::Text(text2)) => text1 == text2,
_ => false,
}
}