mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-15 04:03:21 +00:00
xml: Change ns_prefix from LitByteStr to LitStr
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user