From f157b25b0366f155a89e37721cdec46a6f3f39e2 Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Thu, 23 May 2024 18:24:56 +0200 Subject: [PATCH] Allow pushing to selectors while ignoring combinators --- selectors/parser.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selectors/parser.rs b/selectors/parser.rs index 25b1445b..4849d419 100644 --- a/selectors/parser.rs +++ b/selectors/parser.rs @@ -755,6 +755,11 @@ impl<'i, Impl: SelectorImpl<'i>> Selector<'i, Impl> { self.1.insert(index, component); } + #[inline] + pub fn push(&mut self, component: Component<'i, Impl>) { + self.1.push(component); + } + #[inline] pub fn parts(&self) -> Option<&[Impl::Identifier]> { if !self.is_part() {