mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Stop using deprecated boxed::into_raw in cef.
This commit is contained in:
parent
995985b985
commit
f8ae884ab5
4 changed files with 5 additions and 9 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
use eutil::slice_to_str;
|
||||
use libc::c_int;
|
||||
use std::boxed;
|
||||
use std::collections::BTreeMap;
|
||||
use string::{cef_string_userfree_utf16_alloc, cef_string_userfree_utf16_free};
|
||||
use string::{cef_string_utf16_set};
|
||||
|
@ -14,7 +13,7 @@ use types::{cef_string_multimap_t,cef_string_t};
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn cef_string_multimap_alloc() -> *mut cef_string_multimap_t {
|
||||
boxed::into_raw(box BTreeMap::new())
|
||||
Box::into_raw(box BTreeMap::new())
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue