Skip to content

Commit f157b25

Browse files
committed
Allow pushing to selectors while ignoring combinators
1 parent 81d21b9 commit f157b25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

selectors/parser.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,11 @@ impl<'i, Impl: SelectorImpl<'i>> Selector<'i, Impl> {
755755
self.1.insert(index, component);
756756
}
757757

758+
#[inline]
759+
pub fn push(&mut self, component: Component<'i, Impl>) {
760+
self.1.push(component);
761+
}
762+
758763
#[inline]
759764
pub fn parts(&self) -> Option<&[Impl::Identifier]> {
760765
if !self.is_part() {

0 commit comments

Comments
 (0)