mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Replace most ~"string"s with "string".to_owned().
This commit is contained in:
parent
660f7a016e
commit
25542e3f7e
35 changed files with 206 additions and 206 deletions
|
@ -82,7 +82,7 @@ pub fn _obj_toString(cx: *JSContext, className: *libc::c_char) -> *JSString {
|
|||
return ptr::null();
|
||||
}
|
||||
|
||||
let result = ~"[object " + name + "]";
|
||||
let result = "[object ".to_owned() + name + "]";
|
||||
for (i, c) in result.chars().enumerate() {
|
||||
*chars.offset(i as int) = c as jschar;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue