diff options
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r-- | components/layout_2020/flexbox/construct.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/layout_2020/flexbox/construct.rs b/components/layout_2020/flexbox/construct.rs index a21618d674e..72ee0223705 100644 --- a/components/layout_2020/flexbox/construct.rs +++ b/components/layout_2020/flexbox/construct.rs @@ -156,14 +156,12 @@ where .push_text(flex_text_run.text, &flex_text_run.info); } - let Some(inline_formatting_context) = inline_formatting_context_builder.finish( + let inline_formatting_context = inline_formatting_context_builder.finish( self.context, self.text_decoration_line, true, /* has_first_formatted_line */ false, /* is_single_line_text_box */ - ) else { - return None; - }; + )?; let block_formatting_context = BlockFormattingContext::from_block_container( BlockContainer::InlineFormattingContext(inline_formatting_context), |