summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-11-04 01:49:19 -0500
committerMason Reed <mason@vector35.com>2024-11-04 01:49:19 -0500
commit9d30f0f1b8388c13c768f962e616d5292a506930 (patch)
treeec36c110e3d3e5ecaeee38800d8fc15452e057ba /rust/src
parent485592818e7164c512db62198b80186e1d12caad (diff)
Fix rust object destructors taking a ref accidentally
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index e6323c07..a0667eb0 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -624,7 +624,7 @@ pub trait ObjectDestructor: 'static + Sync + Sized {
{
ffi_wrap!("ObjectDestructor::destruct_view", {
let view_type = &*(ctxt as *mut Self);
- let view = BinaryView::from_raw(view);
+ let view = BinaryView { handle: view };
view_type.destruct_view(&view);
})
}
@@ -642,7 +642,7 @@ pub trait ObjectDestructor: 'static + Sync + Sized {
{
ffi_wrap!("ObjectDestructor::destruct_function", {
let view_type = &*(ctxt as *mut Self);
- let func = Function::from_raw(func);
+ let func = Function { handle: func };
view_type.destruct_function(&func);
})
}