mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Remove usage of unstable box syntax, except in the script crate
… because there’s a lot of it, and script still uses any other unstable features anyway.
This commit is contained in:
parent
796a8dc618
commit
aa5761a5fb
40 changed files with 195 additions and 195 deletions
|
@ -509,7 +509,7 @@ extern fn font_table_func(_: *mut hb_face_t,
|
|||
// `Box::into_raw` intentionally leaks the FontTable so we don't destroy the buffer
|
||||
// while HarfBuzz is using it. When HarfBuzz is done with the buffer, it will pass
|
||||
// this raw pointer back to `destroy_blob_func` which will deallocate the Box.
|
||||
let font_table_ptr = Box::into_raw(box font_table);
|
||||
let font_table_ptr = Box::into_raw(Box::new(font_table));
|
||||
|
||||
let buf = (*font_table_ptr).buffer();
|
||||
// HarfBuzz calls `destroy_blob_func` when the buffer is no longer needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue