diff --git a/src/selector/parse.rs b/src/selector/parse.rs index 7b454ba..9c52257 100644 --- a/src/selector/parse.rs +++ b/src/selector/parse.rs @@ -264,9 +264,9 @@ impl<'a, 'b> SelectorParser<'a, 'b> { fn parse_attribute_selector(&mut self) -> SassResult { self.parser.toks.next(); - Ok(SimpleSelector::Attribute(Attribute::from_tokens( + Ok(SimpleSelector::Attribute(Box::new(Attribute::from_tokens( self.parser, - )?)) + )?))) } fn parse_class_selector(&mut self) -> SassResult { diff --git a/src/selector/simple.rs b/src/selector/simple.rs index 92d7057..82ae23a 100644 --- a/src/selector/simple.rs +++ b/src/selector/simple.rs @@ -62,7 +62,7 @@ pub(crate) enum SimpleSelector { /// the given name. Class(String), - Attribute(Attribute), + Attribute(Box), } impl fmt::Display for SimpleSelector {