style: Run rustfmt.

This commit is contained in:
Emilio Cobos Álvarez 2020-04-18 03:44:57 +02:00
parent b80d79863c
commit ee8e98bc04
3 changed files with 2 additions and 5 deletions

View file

@ -748,9 +748,7 @@ where
Component::Slotted(ref selector) | Component::Host(Some(ref selector)) => {
selector.size_of(ops)
},
Component::Is(ref list) | Component::Where(ref list) => {
list.size_of(ops)
},
Component::Is(ref list) | Component::Where(ref list) => list.size_of(ops),
Component::PseudoElement(ref pseudo) => (*pseudo).size_of(ops),
Component::Combinator(..) |
Component::ExplicitAnyNamespace |

View file

@ -14,8 +14,8 @@ use crate::string_cache::{Atom, Namespace, WeakAtom, WeakNamespace};
use crate::values::serialize_atom_identifier;
use cssparser::{BasicParseError, BasicParseErrorKind, Parser};
use cssparser::{CowRcStr, SourceLocation, ToCss, Token};
use selectors::parser::{self as selector_parser, Selector};
use selectors::parser::SelectorParseErrorKind;
use selectors::parser::{self as selector_parser, Selector};
use selectors::visitor::SelectorVisitor;
use selectors::SelectorList;
use std::fmt;

View file

@ -324,7 +324,6 @@ impl ::selectors::parser::NonTSPseudoClass for NonTSPseudoClass {
}
}
impl ToCss for NonTSPseudoClass {
fn to_css<W>(&self, dest: &mut W) -> fmt::Result
where