style: Fix clippy warnings

Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
This commit is contained in:
Sylvestre Ledru 2020-11-17 12:02:22 +00:00 committed by Emilio Cobos Álvarez
parent 191d5226a3
commit a95ce79554
6 changed files with 13 additions and 16 deletions

View file

@ -334,10 +334,7 @@ where
let result =
matches_complex_selector_internal(iter, element, context, flags_setter, Rightmost::Yes);
match result {
SelectorMatchingResult::Matched => true,
_ => false,
}
matches!(result, SelectorMatchingResult::Matched)
}
#[inline]
@ -915,9 +912,11 @@ where
element,
is_of_type,
is_from_end,
cache.as_mut().map(|s| &mut **s),
cache.as_deref_mut(),
);
cache.as_mut().map(|c| c.insert(element.opaque(), i));
if let Some(c) = cache.as_mut() {
c.insert(element.opaque(), i)
}
i
};
debug_assert_eq!(