minidom: Implement PartialEq manually for Node and Element
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node and Element's PartialEq implementation. Thanks Astro! It's a lot more useful in tests to use `assert_eq!` than `assert!`, so we get both items compared (left and right) instead of a "it failed." message. This "breaks" comparison for these two structs in the sense that it is not strict object comparison anymore but it ensures that namespaces are all present in the compared objects. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
ea6e7c24a3
commit
1c5551a917
20 changed files with 65 additions and 172 deletions
|
|
@ -1,6 +1,8 @@
|
|||
Version XXX, released YYY:
|
||||
* Breaking
|
||||
`Element.write_to` doesn't prepand xml prelude anymore. Use `write_to_decl`.
|
||||
* `Element.write_to` doesn't prepand xml prelude anymore. Use `write_to_decl`.
|
||||
* PartialEq implementation for Element and Node have been changed to
|
||||
ensure namespaces match even if the objects are slightly different.
|
||||
* Changes
|
||||
* Update edition to 2018
|
||||
* Add NSChoice enum to allow comparing NSs differently
|
||||
|
|
|
|||
Loading…
Reference in a new issue