add an extra hash as an extra level of assurance around escaping

This commit is contained in:
Aloke Desai
2021-12-08 15:29:12 -05:00
parent 4a8b47d374
commit 9996ee8dd7
+1 -1
View File
@@ -126,7 +126,7 @@ impl<W: Write> ser::Serializer for &mut Uneval<W> {
}
fn serialize_str(self, v: &str) -> SerResult {
write!(self.writer, "r#\"{}\"#.into()", v)?;
write!(self.writer, "r##\"{}\"##.into()", v)?;
Ok(())
}