mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 18:12:27 +00:00
xml: serialize: Support non-string text fields
This commit is contained in:
@@ -313,7 +313,7 @@ impl Field {
|
||||
}
|
||||
}),
|
||||
(FieldType::Text, false) => Some(quote! {
|
||||
writer.write_event(Event::Text(BytesText::new(&self.#target_field_index)))?;
|
||||
writer.write_event(Event::Text(BytesText::new(self.#target_field_index.as_ref())))?;
|
||||
}),
|
||||
(FieldType::Tag, true) => {
|
||||
let field_name = self.xml_name();
|
||||
|
||||
Reference in New Issue
Block a user