mirror of
https://github.com/servo/servo
synced 2026-04-30 03:17:15 +02:00
script: Remove AsVoidPtr and AsCCharPtrPtr traits (#42153)
We migrated most uses some years ago, so let's finally remove them. It's more clear what we are doing if we inline stuff then hiding dangerous cast behind trait. Testing: Covered by WPT, try run: https://github.com/sagudev/servo/actions/runs/21350967668 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
@@ -4053,7 +4053,7 @@ let traps = ProxyTraps {{
|
||||
isConstructor: None,
|
||||
}};
|
||||
|
||||
CreateProxyHandler(&traps, unsafe {{ Class.get() }}.as_void_ptr())\
|
||||
CreateProxyHandler(&traps, unsafe {{ Class.get() }} as *const _ as *const libc::c_void)\
|
||||
""")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user