Skip to content

Commit 32795dc

Browse files
committed
Fix typo
1 parent 45329bd commit 32795dc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8793,13 +8793,6 @@ impl<'a> Parser<'a> {
87938793

87948794
/// Parse a literal string
87958795
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(" ");
88038796
let next_token = self.next_token();
88048797
match next_token.token {
88058798
Token::Word(Word {
@@ -8813,7 +8806,7 @@ impl<'a> Parser<'a> {
88138806
Ok(s)
88148807
}
88158808
Token::UnicodeStringLiteral(s) => Ok(s),
8816-
_ => self.expected(&format!("literal string {tokens}"), next_token),
8809+
_ => self.expected("literal string", next_token),
88178810
}
88188811
}
88198812

0 commit comments

Comments
 (0)