diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 5060492160b..7257d2e87ad 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -2578,7 +2578,6 @@ impl<'a> SelectorsElement for DomRoot { false } - fn first_child_element(&self) -> Option> { self.node.child_elements().next() } diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index 91981562366..541a1d08fe0 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -356,7 +356,10 @@ impl Visit for Selector where Impl::NonTSPseudoClass: } } -impl Visit for Component where Impl::NonTSPseudoClass: Visit { +impl Visit for Component +where + Impl::NonTSPseudoClass: Visit +{ type Impl = Impl; fn visit(&self, visitor: &mut V) -> bool diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 08d3401cebd..7af75840e1d 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -435,8 +435,11 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { type Impl = SelectorImpl; type Error = StyleParseErrorKind<'i>; - fn parse_non_ts_pseudo_class(&self, location: SourceLocation, name: CowRcStr<'i>) - -> Result> { + fn parse_non_ts_pseudo_class( + &self, + location: SourceLocation, + name: CowRcStr<'i>, + ) -> Result> { use self::NonTSPseudoClass::*; let pseudo_class = match_ignore_ascii_case! { &name, "active" => Active, @@ -468,10 +471,11 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { Ok(pseudo_class) } - fn parse_non_ts_functional_pseudo_class<'t>(&self, - name: CowRcStr<'i>, - parser: &mut CssParser<'i, 't>) - -> Result> { + fn parse_non_ts_functional_pseudo_class<'t>( + &self, + name: CowRcStr<'i>, + parser: &mut CssParser<'i, 't>, + ) -> Result> { use self::NonTSPseudoClass::*; let pseudo_class = match_ignore_ascii_case!{ &name, "lang" => { @@ -489,8 +493,11 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { Ok(pseudo_class) } - fn parse_pseudo_element(&self, location: SourceLocation, name: CowRcStr<'i>) - -> Result> { + fn parse_pseudo_element( + &self, + location: SourceLocation, + name: CowRcStr<'i>, + ) -> Result> { use self::PseudoElement::*; let pseudo_element = match_ignore_ascii_case! { &name, "before" => Before,