diff options
author | rachaelspooky <65132002+rachaelspooky@users.noreply.github.com> | 2024-07-19 04:04:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 04:04:42 +0000 |
commit | 8b3c9b744ab41f52f01ee624228e655b981824eb (patch) | |
tree | 6c933f7d4a19ced946be989acdfd3a796409fc49 /components/layout_2020/flow | |
parent | a6048c46d20912952811dea341f51b746163311c (diff) | |
download | servo-8b3c9b744ab41f52f01ee624228e655b981824eb.tar.gz servo-8b3c9b744ab41f52f01ee624228e655b981824eb.zip |
Fix 5 clippy warnings (#32808)
Signed-off-by: Rachael Gentry <rachael.l.gentry@gmail.com>
Diffstat (limited to 'components/layout_2020/flow')
-rw-r--r-- | components/layout_2020/flow/inline/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/layout_2020/flow/inline/mod.rs b/components/layout_2020/flow/inline/mod.rs index 658906dfa48..b5f508e6f29 100644 --- a/components/layout_2020/flow/inline/mod.rs +++ b/components/layout_2020/flow/inline/mod.rs @@ -1360,8 +1360,7 @@ impl<'a, 'b> InlineFormattingContextState<'a, 'b> { block: self .current_line_max_block_size_including_nested_containers() .max(&self.current_line_segment.max_block_size) - .resolve() - .into(), + .resolve(), }; !self.new_potential_line_size_causes_line_break(&potential_line_size) @@ -2054,7 +2053,7 @@ impl IndependentFormattingContext { let (block_sizes, baseline_offset_in_parent) = self.get_block_sizes_and_baseline_offset( inline_formatting_context_state, - size.block.into(), + size.block, baseline_offset, ); inline_formatting_context_state.update_unbreakable_segment_for_new_content( |