mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix warnings in components/layout_2020
(#31611)
* clippy: fix warnings in components/layout_2020 * fix: review comments
This commit is contained in:
parent
1d1f239ecc
commit
b03411f567
17 changed files with 59 additions and 69 deletions
|
@ -430,11 +430,11 @@ impl StackingContext {
|
|||
debug_assert!(self
|
||||
.real_stacking_contexts_and_positioned_stacking_containers
|
||||
.iter()
|
||||
.all(|c| match c.context_type {
|
||||
.all(|c| matches!(
|
||||
c.context_type,
|
||||
StackingContextType::RealStackingContext |
|
||||
StackingContextType::PositionedStackingContainer => true,
|
||||
_ => false,
|
||||
}));
|
||||
StackingContextType::PositionedStackingContainer
|
||||
)));
|
||||
debug_assert!(self
|
||||
.float_stacking_containers
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue