Skip to content

Commit

Permalink
Merge pull request #1504 from alexcrichton/fix-drop-ref-showing-up
Browse files Browse the repository at this point in the history
Fix `__wbindgen_object_drop_ref` unnecessary bindings
  • Loading branch information
alexcrichton authored May 1, 2019
2 parents c127ef7 + c96e3ce commit 8174973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anyref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub extern fn __wbindgen_anyref_table_dealloc(idx: usize) {
#[no_mangle]
pub unsafe extern fn __wbindgen_drop_anyref_slice(ptr: *mut JsValue, len: usize) {
for slot in slice::from_raw_parts_mut(ptr, len) {
ptr::drop_in_place(slot);
__wbindgen_anyref_table_dealloc(slot.idx as usize);
}
}

Expand Down

0 comments on commit 8174973

Please sign in to comment.