Fix formatting

This commit is contained in:
Dirkjan Ochtman 2022-11-22 21:39:56 -08:00
parent a4f35e5daa
commit 433b0197bb
1 changed files with 14 additions and 12 deletions

View File

@ -49,7 +49,9 @@ fn deserialize_enum(
quote!(
impl #impl_generics FromXml<'xml> for #ident #ty_generics #where_clause {
fn deserialize<'cx>(deserializer: &'cx mut ::instant_xml::Deserializer<'cx, 'xml>) -> Result<Self, ::instant_xml::Error> {
fn deserialize<'cx>(
deserializer: &'cx mut ::instant_xml::Deserializer<'cx, 'xml>
) -> Result<Self, ::instant_xml::Error> {
match deserializer.take_str() {
#variants
_ => Err(::instant_xml::Error::UnexpectedValue)