mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-02-23 09:07:07 +09:00
add: derive(PartialEq) to error types
This commit is contained in:
parent
8188b4fef8
commit
a8071b359d
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ use thiserror::Error;
|
||||||
use crate::parser::{ParseEnumError, ParsePrefixedU32, ParsePrefixedU32Error};
|
use crate::parser::{ParseEnumError, ParsePrefixedU32, ParsePrefixedU32Error};
|
||||||
use crate::types::Module;
|
use crate::types::Module;
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error, PartialEq)]
|
||||||
pub enum DomConversionError {
|
pub enum DomConversionError {
|
||||||
#[error("attribute {attr} not found in element: {start} - {end}", start = pos.0, end = pos.1)]
|
#[error("attribute {attr} not found in element: {start} - {end}", start = pos.0, end = pos.1)]
|
||||||
AttributeNotFound {
|
AttributeNotFound {
|
||||||
|
|
|
@ -26,7 +26,7 @@ mod parse_prefixed_u32 {
|
||||||
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error, PartialEq)]
|
||||||
pub enum ParsePrefixedU32Error {
|
pub enum ParsePrefixedU32Error {
|
||||||
#[error("invalid prefix: found {found}")]
|
#[error("invalid prefix: found {found}")]
|
||||||
InvalidPrefix { found: char },
|
InvalidPrefix { found: char },
|
||||||
|
|
Loading…
Reference in a new issue