From 8d7894c71f86ef6b1813b69a15d72bb7911ed7ca Mon Sep 17 00:00:00 2001 From: pshu Date: Thu, 19 Oct 2023 12:10:48 -0500 Subject: [PATCH] fix(css/ast): Make `.hash()` of `Token` not recursive (#8151) --- crates/swc_css_ast/src/token.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/swc_css_ast/src/token.rs b/crates/swc_css_ast/src/token.rs index 548622072e96..24f1328cd809 100644 --- a/crates/swc_css_ast/src/token.rs +++ b/crates/swc_css_ast/src/token.rs @@ -264,9 +264,7 @@ impl Hash for Token { | Token::LParen | Token::RParen | Token::LBrace - | Token::RBrace => { - self.hash(state); - } + | Token::RBrace => {} } } }