Reformat with rustfmt 1.4.36-nightly (7de6968 2021-02-07)

This commit is contained in:
Simon Sapin 2021-02-25 09:11:54 +01:00
parent 2dd3c05479
commit 479a42a980
6 changed files with 31 additions and 14 deletions

View file

@ -198,11 +198,12 @@ impl NonTSPseudoClass {
/// revalidation.
pub fn needs_cache_revalidation(&self) -> bool {
self.state_flag().is_empty() &&
!matches!(*self,
// :-moz-any is handled by the revalidation visitor walking
// the things inside it; it does not need to cause
// revalidation on its own.
NonTSPseudoClass::MozAny(_) |
!matches!(
*self,
// :-moz-any is handled by the revalidation visitor walking
// the things inside it; it does not need to cause
// revalidation on its own.
NonTSPseudoClass::MozAny(_) |
// :dir() depends on state only, but doesn't use state_flag
// because its semantics don't quite match. Nevertheless, it
// doesn't need cache revalidation, because we already compare