From 570cdc81a5566b53d1f730076971858ac9f50758 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 7 Sep 2022 17:40:25 +0200 Subject: [PATCH] Fix prefixes on close tags --- instant-xml-macros/src/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instant-xml-macros/src/ser.rs b/instant-xml-macros/src/ser.rs index bfd89f1..6e11e13 100644 --- a/instant-xml-macros/src/ser.rs +++ b/instant-xml-macros/src/ser.rs @@ -63,7 +63,7 @@ pub fn to_xml(input: &syn::DeriveInput) -> proc_macro2::TokenStream { #body // Close tag - serializer.write_close(None, #root_name)?; + serializer.write_close(prefix, #root_name)?; serializer.pop(old); Ok(())