mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Assert earlier to try to get a more helpful stack.
This commit is contained in:
parent
e7261d51e9
commit
67fae7a2ce
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ impl<Impl: SelectorImpl> SelectorBuilder<Impl> {
|
|||
/// Pushes a simple selector onto the current compound selector.
|
||||
#[inline(always)]
|
||||
pub fn push_simple_selector(&mut self, ss: Component<Impl>) {
|
||||
debug_assert!(!ss.is_combinator());
|
||||
assert!(!ss.is_combinator());
|
||||
self.simple_selectors.push(ss);
|
||||
self.current_len += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue