mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix clippy wanings in layout (#33215)
Signed-off-by: atbrakhi <atbrakhi@igalia.com>
This commit is contained in:
parent
12661c1920
commit
2037884469
3 changed files with 4 additions and 7 deletions
|
@ -1442,9 +1442,7 @@ impl<'layout_dta> InlineFormattingContextLayout<'layout_dta> {
|
|||
assert!(!will_break);
|
||||
}
|
||||
|
||||
self.current_line
|
||||
.line_items
|
||||
.extend(segment_items.into_iter());
|
||||
self.current_line.line_items.extend(segment_items);
|
||||
self.current_line.has_content |= self.current_line_segment.has_content;
|
||||
|
||||
self.current_line_segment.reset();
|
||||
|
@ -1964,7 +1962,6 @@ impl IndependentFormattingContext {
|
|||
non_replaced
|
||||
.inline_content_sizes(layout.layout_context)
|
||||
.shrink_to_fit(available_size)
|
||||
.into()
|
||||
});
|
||||
|
||||
// https://drafts.csswg.org/css2/visudet.html#min-max-widths
|
||||
|
|
|
@ -374,7 +374,7 @@ impl TextRun {
|
|||
specified_word_spacing.to_used_value(Au::from_f64_px(space_width))
|
||||
});
|
||||
|
||||
let mut flags = flags.clone();
|
||||
let mut flags = flags;
|
||||
if segment.bidi_level.is_rtl() {
|
||||
flags.insert(ShapingFlags::RTL_FLAG);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue