mirror of
https://github.com/servo/servo.git
synced 2025-10-08 12:39:30 +01:00
Trait changes, and eliminate 'copy'
This commit is contained in:
parent
907d9f23cf
commit
ffe60ea027
30 changed files with 111 additions and 100 deletions
|
@ -273,7 +273,7 @@ extern fn getTagName(cx: *JSContext, _argc: c_uint, vp: *mut JSVal) -> JSBool {
|
|||
|
||||
let node = unwrap(obj);
|
||||
do node.with_imm_element |elem| {
|
||||
let s = str(copy elem.tag_name);
|
||||
let s = str(elem.tag_name.clone());
|
||||
*vp = domstring_to_jsval(cx, &s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue