mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rollup merge of #7015 - mbrubeck:arc-box, r=Ms2ger
Replace Arc<Box<TextRun>> with Arc<TextRun> Removes an extraneous level of indirection. r? @pcwalton <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7015) <!-- Reviewable:end -->
This commit is contained in:
commit
b5f9c06776
5 changed files with 10 additions and 10 deletions
|
@ -276,7 +276,7 @@ impl TextRunScanner {
|
|||
options.flags.insert(RTL_FLAG);
|
||||
}
|
||||
let mut font = fontgroup.fonts.get(run_info.font_index).unwrap().borrow_mut();
|
||||
Arc::new(box TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
|
||||
Arc::new(TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
|
||||
}).collect::<Vec<_>>()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue