diff --git a/src/output.rs b/src/output.rs index 7f651ec..2d29575 100644 --- a/src/output.rs +++ b/src/output.rs @@ -84,7 +84,7 @@ impl Css { if body.is_empty() { return Ok(Vec::new()); } - let selector = selector.remove_placeholders(); + let selector = selector.into_selector().remove_placeholders(); if selector.is_empty() { return Ok(Vec::new()); } diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 9922bdb..140407c 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -9,7 +9,9 @@ use crate::{ common::{Brackets, ListSeparator}, error::SassResult, scope::Scope, - selector::{ComplexSelectorComponent, ExtendRule, Extender, Selector, SelectorParser}, + selector::{ + ComplexSelectorComponent, ExtendRule, ExtendedSelector, Extender, Selector, SelectorParser, + }, style::Style, unit::Unit, utils::{ @@ -40,7 +42,7 @@ pub(crate) enum Comment { #[derive(Debug, Clone)] pub(crate) enum Stmt { RuleSet { - selector: Selector, + selector: ExtendedSelector, body: Vec, }, Style(Box