mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fixes for language changes
This commit is contained in:
parent
f76755a671
commit
55b3aa2673
23 changed files with 39 additions and 39 deletions
|
@ -50,7 +50,7 @@ fn jsval_to_str(cx: *JSContext, v: jsval) -> Result<~str, ()> {
|
|||
Err(())
|
||||
} else {
|
||||
unsafe {
|
||||
let buf = vec::unsafe::from_buf(chars as *u8, len as uint);
|
||||
let buf = vec::raw::from_buf(chars as *u8, len as uint);
|
||||
Ok(str::from_bytes(buf))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue