parsers: port some elements with children to derive macros

This commit is contained in:
Jonas Schäfer 2024-06-29 16:14:12 +02:00
commit 5d284bbd3a
11 changed files with 106 additions and 117 deletions

View file

@ -567,7 +567,7 @@ mod tests {
FromElementError::Invalid(Error::Other(string)) => string,
_ => panic!(),
};
assert_eq!(message, "Unknown attribute in reason element.".to_owned());
assert_eq!(message, "Unknown attribute in Reason element.".to_owned());
}
#[cfg(not(feature = "disable-validation"))]
@ -583,7 +583,7 @@ mod tests {
FromElementError::Invalid(Error::Other(string)) => string,
_ => panic!(),
};
assert_eq!(message, "Unknown child in reason element.".to_owned());
assert_eq!(message, "Unknown child in Reason element.".to_owned());
}
#[cfg(not(feature = "disable-validation"))]