mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
Adapt to rust changes
This commit is contained in:
parent
1a713b81bb
commit
cb85521097
28 changed files with 198 additions and 198 deletions
|
@ -37,13 +37,13 @@ fn jsval_to_str(cx: *JSContext, v: jsval) -> result<~str, ()> {
|
|||
} else {
|
||||
jsstr = JS_ValueToString(cx, v);
|
||||
if jsstr.is_null() {
|
||||
ret err(());
|
||||
return err(());
|
||||
}
|
||||
}
|
||||
|
||||
let len = 0;
|
||||
let chars = JS_GetStringCharsZAndLength(cx, jsstr, ptr::addr_of(len));
|
||||
ret if chars.is_null() {
|
||||
return if chars.is_null() {
|
||||
err(())
|
||||
} else {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue