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
|
@ -118,15 +118,15 @@ impl HeapSizeOf for FontContextHandle {
|
|||
|
||||
impl FontContextHandle {
|
||||
pub fn new() -> FontContextHandle {
|
||||
let user = Box::into_raw(box User {
|
||||
let user = Box::into_raw(Box::new(User {
|
||||
size: 0,
|
||||
});
|
||||
let mem = Box::into_raw(box FT_MemoryRec_ {
|
||||
}));
|
||||
let mem = Box::into_raw(Box::new(FT_MemoryRec_ {
|
||||
user: user as *mut c_void,
|
||||
alloc: Some(ft_alloc),
|
||||
free: Some(ft_free),
|
||||
realloc: Some(ft_realloc),
|
||||
});
|
||||
}));
|
||||
unsafe {
|
||||
let mut ctx: FT_Library = ptr::null_mut();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue