xml: Change ns_prefix from LitByteStr to LitStr

This commit is contained in:
Lennart K
2025-08-28 15:19:27 +02:00
parent c38fbe004f
commit 43b4150e28
5 changed files with 20 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ impl NamedStruct {
} else {
b"".to_vec()
};
let attr_name = [b"xmlns".as_ref(), &sep, &prefix.value()].concat();
let attr_name = [b"xmlns".as_ref(), &sep, prefix.value().as_bytes()].concat();
let a = syn::LitByteStr::new(&attr_name, prefix.span());
quote! {
bytes_start.push_attribute((#a.as_ref(), #ns.as_ref()));