mirror of
https://github.com/servo/servo.git
synced 2025-06-21 23:59:00 +01:00
Update Rust version again
This gets us the new runtime.
This commit is contained in:
parent
ef50acfa89
commit
a2d9810b69
49 changed files with 129 additions and 129 deletions
|
@ -202,7 +202,7 @@ pub fn jsval_to_str(cx: *JSContext, v: JSVal) -> Result<~str, ()> {
|
|||
}
|
||||
|
||||
let strbuf = JS_EncodeString(cx, jsstr);
|
||||
let buf = str::raw::from_buf(strbuf as *u8);
|
||||
let buf = str::raw::from_c_str(strbuf);
|
||||
JS_free(cx, strbuf as *libc::c_void);
|
||||
Ok(buf)
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ pub fn CreateInterfaceObjects2(cx: *JSContext, global: *JSObject, receiver: *JSO
|
|||
|
||||
let mut interface = ptr::null();
|
||||
if constructorClass.is_not_null() || constructor.is_not_null() {
|
||||
interface = do name.as_c_str |s| {
|
||||
interface = do name.to_c_str().with_ref |s| {
|
||||
CreateInterfaceObject(cx, global, receiver, constructorClass,
|
||||
constructor, ctorNargs, proto,
|
||||
staticMethods, constants, s)
|
||||
|
@ -506,7 +506,7 @@ fn CreateInterfaceObject(cx: *JSContext, global: *JSObject, receiver: *JSObject,
|
|||
}
|
||||
|
||||
if constructorClass.is_not_null() {
|
||||
let toString = do "toString".as_c_str |s| {
|
||||
let toString = do "toString".to_c_str().with_ref |s| {
|
||||
DefineFunctionWithReserved(cx, constructor, s,
|
||||
InterfaceObjectToString,
|
||||
0, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue