diff --git a/src/parser.rs b/src/parser.rs index 4df969b6bd..87c15ab74c 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -196,7 +196,7 @@ fn try_usize_to_i32(value: usize) -> Result { } } -#[derive(PartialEq)] +#[derive(PartialEq, Eq)] /// Enum for the parse formats supported by libxml2 pub enum ParseFormat { /// Strict parsing for XML diff --git a/src/tree/nodetype.rs b/src/tree/nodetype.rs index febf941998..9ea29a5146 100644 --- a/src/tree/nodetype.rs +++ b/src/tree/nodetype.rs @@ -2,7 +2,7 @@ //! /// Types of xml nodes -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] #[allow(missing_docs)] pub enum NodeType { ElementNode,