From 4de378cb1e170df496b277bc141dacaa1c21738f Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Wed, 7 Dec 2022 05:53:41 +0300 Subject: [PATCH] fix(css/parser): Fix a small bug (#6591) --- crates/swc_css_parser/src/parser/syntax/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/swc_css_parser/src/parser/syntax/mod.rs b/crates/swc_css_parser/src/parser/syntax/mod.rs index 1006685e592e..ba67b45fbdb7 100644 --- a/crates/swc_css_parser/src/parser/syntax/mod.rs +++ b/crates/swc_css_parser/src/parser/syntax/mod.rs @@ -518,10 +518,9 @@ where // it to the list of declarations. tok!("ident") => { let span = self.input.cur_span(); - let cur = self.input.bump().unwrap(); let mut temporary_list = ListOfComponentValues { span: Default::default(), - children: vec![ComponentValue::PreservedToken(Box::new(cur))], + children: vec![], }; while !is_one_of!(self, ";", EOF) {