The inconsistency was PartialEq considering self.d in the comparison while Ord did not. I don't think it would be possible for the same node ID in the same document to yield different node data so I don't think this had any effect, but it still seems unnecessary.
The inconsistency was
PartialEq
consideringself.d
in the comparison whileOrd
did not. I don't think it would be possible for the same node ID in the same document to yield different node data so I don't think this had any effect, but it still seems unnecessary.