Skip to content

Commit

Permalink
lexer: remove ascii check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucab committed Jul 17, 2024
1 parent 1119615 commit 6a15bca
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/oxc_parser/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ impl<'a> Lexer<'a> {
/// the given ASCII char.
#[inline]
fn next_ascii_char_eq(&mut self, b: u8) -> bool {
// TODO: can be replaced by `std::ascii:Char` once stabilized.
// https://github.com/rust-lang/rust/issues/110998
if !b.is_ascii() {
return false;
}
// SAFETY: `b` is a valid ASCII char.
unsafe { self.source.advance_if_ascii_eq(b) }
}
Expand Down

0 comments on commit 6a15bca

Please sign in to comment.