We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45329bd commit 32795dcCopy full SHA for 32795dc
src/parser/mod.rs
@@ -8793,13 +8793,6 @@ impl<'a> Parser<'a> {
8793
8794
/// Parse a literal string
8795
pub fn parse_literal_string(&mut self) -> Result<String, ParserError> {
8796
- let tokens = self
8797
- .tokens
8798
- .clone()
8799
- .iter()
8800
- .map(|t| t.to_string())
8801
- .collect::<Vec<_>>()
8802
- .join(" ");
8803
let next_token = self.next_token();
8804
match next_token.token {
8805
Token::Word(Word {
@@ -8813,7 +8806,7 @@ impl<'a> Parser<'a> {
8813
8806
Ok(s)
8814
8807
}
8815
8808
Token::UnicodeStringLiteral(s) => Ok(s),
8816
- _ => self.expected(&format!("literal string {tokens}"), next_token),
8809
+ _ => self.expected("literal string", next_token),
8817
8810
8818
8811
8819
8812
0 commit comments