Implement ToXml for str instead of &str

This commit is contained in:
Dirkjan Ochtman 2023-03-02 16:05:35 +01:00
parent 3cfd2e4706
commit 5f6091528f
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ impl ToXml for char {
}
}
impl ToXml for &str {
impl ToXml for str {
fn serialize<W: fmt::Write + ?Sized>(
&self,
field: Option<Id<'_>>,