Skip to content

Commit

Permalink
fix(sitemaps): fix xml
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Nov 22, 2024
1 parent 811ca0e commit 857d3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rari-sitemap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<'a> TryFrom<&Sitemap<'a>> for String {

fn try_from(value: &Sitemap<'a>) -> Result<Self, Self::Error> {
let mut out = String::new();
out.write_str(r#"<?xml version="1.0" encoding="UTF-8"?>\n"#)?;
out.write_str("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")?;
quick_xml::se::to_writer(&mut out, &value)?;
Ok(out)
}
Expand All @@ -119,7 +119,7 @@ impl<'a> TryFrom<&SitemapIndex<'a>> for String {

fn try_from(value: &SitemapIndex<'a>) -> Result<Self, Self::Error> {
let mut out = String::new();
out.write_str(r#"<?xml version="1.0" encoding="UTF-8"?>\n"#)?;
out.write_str("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")?;
quick_xml::se::to_writer(&mut out, &value)?;
Ok(out)
}
Expand Down

0 comments on commit 857d3f2

Please sign in to comment.