mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Fix clippy warnings
Depends on D96634 Differential Revision: https://phabricator.services.mozilla.com/D96636
This commit is contained in:
parent
191d5226a3
commit
a95ce79554
6 changed files with 13 additions and 16 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue