From 74bf9b27913e14b821148a8ce547d2bcf0a028ed Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Sun, 20 Oct 2024 22:42:33 +0000 Subject: [PATCH] add xml header --- libs/stringtable/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/stringtable/src/lib.rs b/libs/stringtable/src/lib.rs index 4dfb5fcb..fd6c02fa 100644 --- a/libs/stringtable/src/lib.rs +++ b/libs/stringtable/src/lib.rs @@ -51,9 +51,11 @@ impl Project { &self, writer: &mut W, ) -> Result<(), quick_xml::de::DeError> { + // If this write fails, the serializer will also throw an error + let _ = writer.write_str(r#""#); + let _ = writer.write_char('\n'); let mut ser = Serializer::new(writer); ser.indent(' ', 4); - self.serialize(ser) } }