Rustfmt and fix tidy on recent changes.

This commit is contained in:
Emilio Cobos Álvarez 2019-06-23 13:03:00 +02:00
parent 6eedebe2c8
commit ed2e9ce482
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
16 changed files with 78 additions and 57 deletions

View file

@ -78,7 +78,8 @@ pub struct DescendantInvalidationLists<'a> {
impl<'a> DescendantInvalidationLists<'a> {
fn is_empty(&self) -> bool {
self.dom_descendants.is_empty() && self.slotted_descendants.is_empty() &&
self.dom_descendants.is_empty() &&
self.slotted_descendants.is_empty() &&
self.parts.is_empty()
}
}
@ -179,9 +180,7 @@ impl<'a> Invalidation<'a> {
Combinator::Child | Combinator::Descendant | Combinator::PseudoElement => {
InvalidationKind::Descendant(DescendantInvalidationKind::Dom)
},
Combinator::Part => {
InvalidationKind::Descendant(DescendantInvalidationKind::Part)
},
Combinator::Part => InvalidationKind::Descendant(DescendantInvalidationKind::Part),
Combinator::SlotAssignment => {
InvalidationKind::Descendant(DescendantInvalidationKind::Slotted)
},
@ -506,7 +505,6 @@ where
any
}
fn invalidate_slotted_elements(&mut self, invalidations: &[Invalidation<'b>]) -> bool {
if invalidations.is_empty() {
return false;