summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
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);
})
}