aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flexbox/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-07-04 16:18:58 +0200
committerGitHub <noreply@github.com>2024-07-04 14:18:58 +0000
commit4b63043c6ae9ca9d51c6139101e294aaef379702 (patch)
treee88cdf1f58308a55dde90ab1d73f72752dcc0fa7 /components/layout_2020/flexbox/construct.rs
parent99c1f886b8398e73e5af06135f6f357752e2cb16 (diff)
downloadservo-4b63043c6ae9ca9d51c6139101e294aaef379702.tar.gz
servo-4b63043c6ae9ca9d51c6139101e294aaef379702.zip
clippy: Fix warnings in `shared` and `config`, `fonts`, `layout`, and `layout_2020` components (#32674)
Diffstat (limited to 'components/layout_2020/flexbox/construct.rs')
-rw-r--r--components/layout_2020/flexbox/construct.rs6
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),