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

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