mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
Don't use mem::transmute for the argument to CreateProxyHandler.
This commit is contained in:
parent
b2e7e67087
commit
f0a87bcf64
1 changed files with 1 additions and 1 deletions
|
@ -2130,7 +2130,7 @@ class CGDefineDOMInterfaceMethod(CGAbstractMethod):
|
|||
trace: Some(%s)
|
||||
};
|
||||
js_info.dom_static.proxy_handlers.insert(PrototypeList::id::%s as uint,
|
||||
CreateProxyHandler(&traps, mem::transmute(&Class)));
|
||||
CreateProxyHandler(&traps, &Class as *_ as *_));
|
||||
|
||||
""" % (FINALIZE_HOOK_NAME,
|
||||
TRACE_HOOK_NAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue