Skip to content

Commit 37490ca

Browse files
committed
f
1 parent 0942c16 commit 37490ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindings/rust/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ impl Instance {
378378

379379
/// Get a read-only pointer to the module.
380380
unsafe fn get_module_ptr(&self) -> *const sys::FizzyModule {
381-
sys::fizzy_get_instance_module(self.0.as_ptr())
381+
let ptr = sys::fizzy_get_instance_module(self.0.as_ptr());
382+
debug_assert!(!ptr.is_null());
383+
ptr
382384
}
383385

384386
/// Get a non-owned module instance.

0 commit comments

Comments
 (0)