add: derive(PartialEq) to error types

This commit is contained in:
Wataru Otsubo 2025-01-30 01:19:41 +09:00
parent 8188b4fef8
commit a8071b359d
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ use thiserror::Error;
use crate::parser::{ParseEnumError, ParsePrefixedU32, ParsePrefixedU32Error};
use crate::types::Module;
#[derive(Debug, Error)]
#[derive(Debug, Error, PartialEq)]
pub enum DomConversionError {
#[error("attribute {attr} not found in element: {start} - {end}", start = pos.0, end = pos.1)]
AttributeNotFound {

View file

@ -26,7 +26,7 @@ mod parse_prefixed_u32 {
use thiserror::Error;
#[derive(Debug, Error)]
#[derive(Debug, Error, PartialEq)]
pub enum ParsePrefixedU32Error {
#[error("invalid prefix: found {found}")]
InvalidPrefix { found: char },