diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-04 01:49:19 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-04 01:49:19 -0500 |
| commit | 9d30f0f1b8388c13c768f962e616d5292a506930 (patch) | |
| tree | ec36c110e3d3e5ecaeee38800d8fc15452e057ba /rust/src | |
| parent | 485592818e7164c512db62198b80186e1d12caad (diff) | |
Fix rust object destructors taking a ref accidentally
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/lib.rs | 4 |
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); }) } |
