mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -107,9 +107,10 @@ impl<'b> TopLevelRuleParser<'b> {
|
|||
// If there's anything that isn't a namespace rule (or import rule, but
|
||||
// we checked that already at the beginning), reject with a
|
||||
// StateError.
|
||||
if new_state == State::Namespaces && ctx.rule_list[ctx.index..]
|
||||
.iter()
|
||||
.any(|r| !matches!(*r, CssRule::Namespace(..)))
|
||||
if new_state == State::Namespaces &&
|
||||
ctx.rule_list[ctx.index..]
|
||||
.iter()
|
||||
.any(|r| !matches!(*r, CssRule::Namespace(..)))
|
||||
{
|
||||
self.dom_error = Some(RulesMutateError::InvalidState);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue