Fixes for language changes

This commit is contained in:
Patrick Walton 2012-09-13 16:23:57 -07:00
parent f76755a671
commit 55b3aa2673
23 changed files with 39 additions and 39 deletions

View file

@ -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))
}
}