From e247b89c1a7598b2981e9f3abfeb5d4874f733be Mon Sep 17 00:00:00 2001 From: yt2b Date: Sat, 20 Jan 2024 15:46:15 +0900 Subject: [PATCH] Push char --- parser/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/string.rs b/parser/src/string.rs index 750eaa7..2914aa2 100644 --- a/parser/src/string.rs +++ b/parser/src/string.rs @@ -504,7 +504,7 @@ impl<'a> StringParser<'a> { '\\' if !self.kind.is_raw() => { self.next_char(); if let Some('{' | '}') = self.peek() { - content.push_str("\\"); + content.push('\\'); } else { content.push_str(&self.parse_escaped_char()?); }