mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Run rustfmt.
This commit is contained in:
parent
b80d79863c
commit
ee8e98bc04
3 changed files with 2 additions and 5 deletions
|
@ -748,9 +748,7 @@ where
|
||||||
Component::Slotted(ref selector) | Component::Host(Some(ref selector)) => {
|
Component::Slotted(ref selector) | Component::Host(Some(ref selector)) => {
|
||||||
selector.size_of(ops)
|
selector.size_of(ops)
|
||||||
},
|
},
|
||||||
Component::Is(ref list) | Component::Where(ref list) => {
|
Component::Is(ref list) | Component::Where(ref list) => list.size_of(ops),
|
||||||
list.size_of(ops)
|
|
||||||
},
|
|
||||||
Component::PseudoElement(ref pseudo) => (*pseudo).size_of(ops),
|
Component::PseudoElement(ref pseudo) => (*pseudo).size_of(ops),
|
||||||
Component::Combinator(..) |
|
Component::Combinator(..) |
|
||||||
Component::ExplicitAnyNamespace |
|
Component::ExplicitAnyNamespace |
|
||||||
|
|
|
@ -14,8 +14,8 @@ use crate::string_cache::{Atom, Namespace, WeakAtom, WeakNamespace};
|
||||||
use crate::values::serialize_atom_identifier;
|
use crate::values::serialize_atom_identifier;
|
||||||
use cssparser::{BasicParseError, BasicParseErrorKind, Parser};
|
use cssparser::{BasicParseError, BasicParseErrorKind, Parser};
|
||||||
use cssparser::{CowRcStr, SourceLocation, ToCss, Token};
|
use cssparser::{CowRcStr, SourceLocation, ToCss, Token};
|
||||||
use selectors::parser::{self as selector_parser, Selector};
|
|
||||||
use selectors::parser::SelectorParseErrorKind;
|
use selectors::parser::SelectorParseErrorKind;
|
||||||
|
use selectors::parser::{self as selector_parser, Selector};
|
||||||
use selectors::visitor::SelectorVisitor;
|
use selectors::visitor::SelectorVisitor;
|
||||||
use selectors::SelectorList;
|
use selectors::SelectorList;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
@ -324,7 +324,6 @@ impl ::selectors::parser::NonTSPseudoClass for NonTSPseudoClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl ToCss for NonTSPseudoClass {
|
impl ToCss for NonTSPseudoClass {
|
||||||
fn to_css<W>(&self, dest: &mut W) -> fmt::Result
|
fn to_css<W>(&self, dest: &mut W) -> fmt::Result
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue