mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
xml: Comprehensive refactoring from byte strings to strings
This commit is contained in:
@@ -108,8 +108,7 @@ impl Enum {
|
||||
Some(ns) => quote! { Some(#ns) },
|
||||
None => quote! { None },
|
||||
};
|
||||
let b_xml_name = variant.xml_name().value();
|
||||
let xml_name = String::from_utf8_lossy(&b_xml_name);
|
||||
let xml_name = variant.xml_name().value();
|
||||
quote! {(#ns, #xml_name)}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user