diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-04-19 09:29:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 08:29:01 +0000 |
commit | df4c56efa493651cbaa413b90b4cbf2ff92c0c21 (patch) | |
tree | c3ce9e800a31a226d18e6a682a404292a180fe29 /components | |
parent | 21ea6d21f0f3bcb2e736082e397ef99cf9ecd051 (diff) | |
download | servo-df4c56efa493651cbaa413b90b4cbf2ff92c0c21.tar.gz servo-df4c56efa493651cbaa413b90b4cbf2ff92c0c21.zip |
clippy: Fix collapsible_if warning (#32109)
Diffstat (limited to 'components')
-rw-r--r-- | components/layout_2020/flow/inline.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs index 8ab22124b2a..9692b01a799 100644 --- a/components/layout_2020/flow/inline.rs +++ b/components/layout_2020/flow/inline.rs @@ -745,11 +745,10 @@ impl<'a, 'b> InlineFormattingContextState<'a, 'b> { if inline_box_state .base_fragment_info .flags - .contains(FragmentFlags::IS_BR_ELEMENT) + .contains(FragmentFlags::IS_BR_ELEMENT) && + self.deferred_br_clear == Clear::None { - if self.deferred_br_clear == Clear::None { - self.deferred_br_clear = inline_box_state.base.style.clone_clear(); - } + self.deferred_br_clear = inline_box_state.base.style.clone_clear(); } let line_item = inline_box_state |