mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix various build warnings.
This commit is contained in:
parent
717805a593
commit
1604515fd9
16 changed files with 32 additions and 35 deletions
|
@ -102,9 +102,7 @@ impl Drop for FlowRef {
|
|||
let object_align = vtable[2];
|
||||
|
||||
let fake_data = heap::allocate(object_size, object_align);
|
||||
ptr::copy_memory(fake_data,
|
||||
flow_ref.object.data as *const u8,
|
||||
object_size);
|
||||
ptr::copy(fake_data, flow_ref.object.data as *const u8, object_size);
|
||||
|
||||
let fake_box = raw::TraitObject { vtable: flow_ref.object.vtable, data: fake_data as *mut () };
|
||||
let fake_flow = mem::transmute::<raw::TraitObject, Box<Flow>>(fake_box);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue