Fix 5 clippy warnings (#32808)

Signed-off-by: Rachael Gentry <rachael.l.gentry@gmail.com>
This commit is contained in:
rachaelspooky 2024-07-19 04:04:42 +00:00 committed by GitHub
parent a6048c46d2
commit 8b3c9b744a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View file

@ -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(