mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fix clippy warning (#32667)
This commit is contained in:
parent
c0105de82b
commit
044ab3eeab
5 changed files with 8 additions and 14 deletions
|
@ -268,7 +268,7 @@ impl InlineFormattingContextBuilder {
|
|||
for identifier in self.inline_box_stack.iter() {
|
||||
new_builder.start_inline_box(
|
||||
self.inline_boxes
|
||||
.get(&identifier)
|
||||
.get(identifier)
|
||||
.borrow()
|
||||
.split_around_block(),
|
||||
);
|
||||
|
|
|
@ -1738,7 +1738,7 @@ impl InlineFormattingContext {
|
|||
|
||||
match item {
|
||||
InlineItem::StartInlineBox(identifier) => {
|
||||
ifc.start_inline_box(&*self.inline_boxes.get(identifier).borrow());
|
||||
ifc.start_inline_box(&self.inline_boxes.get(identifier).borrow());
|
||||
},
|
||||
InlineItem::EndInlineBox => ifc.finish_inline_box(),
|
||||
InlineItem::TextRun(run) => run.layout_into_line_items(&mut ifc),
|
||||
|
@ -2369,7 +2369,7 @@ struct ContentSizesComputation<'a> {
|
|||
impl<'a> ContentSizesComputation<'a> {
|
||||
fn traverse(mut self, inline_formatting_context: &InlineFormattingContext) -> ContentSizes {
|
||||
for inline_item in inline_formatting_context.inline_items.iter() {
|
||||
self.process_item(&mut *inline_item.borrow_mut(), inline_formatting_context);
|
||||
self.process_item(&mut inline_item.borrow_mut(), inline_formatting_context);
|
||||
}
|
||||
|
||||
self.forced_line_break();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue