From a5a3c695f77554aaac058d289851b88b87fff301 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 20 Feb 2024 02:43:12 +0000 Subject: [PATCH] refactor(parser): correct comment (#2441) Just correcting a typo in a comment, and moving comment to a better place. --- crates/oxc_parser/src/lexer/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_parser/src/lexer/search.rs b/crates/oxc_parser/src/lexer/search.rs index e7c5e894d..25f40a22a 100644 --- a/crates/oxc_parser/src/lexer/search.rs +++ b/crates/oxc_parser/src/lexer/search.rs @@ -234,10 +234,10 @@ impl SafeByteMatchTable { macro_rules! safe_byte_match_table { (|$byte:ident| $res:expr) => {{ use crate::lexer::search::SafeByteMatchTable; + // Clippy creates warnings because e.g. `safe_byte_match_table!(|b| b == 0)` + // is expanded to `SafeByteMatchTable([0 == 0, ... ])` #[allow(clippy::eq_op)] const TABLE: SafeByteMatchTable = seq_macro::seq!($byte in 0u8..=255 { - // Clippy creates warnings because e.g. `byte_match_table!(|b| b == 0)` - // is expanded to `SafeByteMatchTable([0 == 0, ... ])` SafeByteMatchTable::new([#($res,)*]) }); TABLE