aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/flow/construct.rs')
-rw-r--r--components/layout_2020/flow/construct.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/layout_2020/flow/construct.rs b/components/layout_2020/flow/construct.rs
index 6f017461aaa..4c7b712fade 100644
--- a/components/layout_2020/flow/construct.rs
+++ b/components/layout_2020/flow/construct.rs
@@ -71,11 +71,11 @@ impl BlockFormattingContext {
ends_with_whitespace: false,
};
let contents = BlockContainer::InlineFormattingContext(ifc);
- let bfc = Self {
+
+ Self {
contents,
contains_floats: false,
- };
- bfc
+ }
}
}
@@ -442,8 +442,8 @@ fn preserve_segment_break() -> bool {
///
/// Returns the transformed text as a [String] and also whether or not the input had
/// any uncollapsible content.
-fn collapse_and_transform_whitespace<'text>(
- input: &'text str,
+fn collapse_and_transform_whitespace(
+ input: &str,
white_space: WhiteSpace,
trim_beginning_white_space: bool,
) -> (String, bool) {