Skip to content

Commit 03f982e

Browse files
authored
Fix is_ident_start to accept immutable reference (#409)
1 parent 37fe2cd commit 03f982e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokenizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ fn consume_quoted_string<'a>(
891891
}
892892

893893
#[inline]
894-
fn is_ident_start(tokenizer: &mut Tokenizer) -> bool {
894+
fn is_ident_start(tokenizer: &Tokenizer) -> bool {
895895
!tokenizer.is_eof()
896896
&& match_byte! { tokenizer.next_byte_unchecked(),
897897
b'a'..=b'z' | b'A'..=b'Z' | b'_' | b'\0' => true,

0 commit comments

Comments
 (0)